Skip to content

Handling Errors

All API calls use the status codes as described in the Django REST Framework’s Status Code Guide, but generally you only need to check for success status codes (200 or 204), handle the special case of Token Expiration (403) and report an error otherwise.

This is not an exhaustive list, but common error codes are listed below.

Status CodeDescription
401Unauthenticated
403Forbidden (token expired?)
400Malformed request
404Not found

For security reasons, sometimes an operation which should return 403 returns 404 to avoid disclosing IDs and other information to attackers.