Skip to Content
Error Codes

Error Codes

All errors follow the shape:

{ "error": "human-readable message", "code": "MACHINE_READABLE_CODE", "details": { … optional } }

HTTP status reference

StatusWhenCommon causes
400Bad requestMissing field, unsupported format, malformed JSON
401UnauthorizedMissing/expired token
402Payment requiredFree quota exhausted, paid balance = 0
403ForbiddenToken valid but permission denied for this resource
404Not foundWrong conversion_id, deleted resource
405Method not allowedBad auth payload (e.g. token without user_id)
413Payload too largeFile exceeds tier limit, see Limits
415Unsupported media typeFormat not in the service’s supported list
429Too many requestsRate-limited; back off
500Server errorBug, report with conversion_id
502Bad gatewayUpstream worker crashed; retry safe
503Service unavailableMaintenance, transient infra issue

Auth and rate-limit codes

These refusals put a machine code in error and keep an English sentence in detail. Branch on error, never on the sentence. A number the message needs comes as its own field.

CodeStatusRouteExtra fields
throttle.rate_limited429any routeretry_after_seconds, also sent as the Retry-After header
auth.login_rate_limited429/api/v1/user/auth/login/, /api/v1/user/auth/2fa/retry_after_seconds
auth.account_locked429/api/v1/user/auth/login/lockout_minutes, retry_after_seconds
auth.invalid_credentials401/api/v1/user/auth/login/
auth.email_not_verified401/api/v1/user/auth/login/
auth.account_inactive401/api/v1/user/auth/login/
auth.identifier_required, auth.password_required400/api/v1/user/auth/login/
auth.login_method_invalid400/api/v1/user/auth/login/
auth.login_json_required415/api/v1/user/auth/login/
auth.google_login_failed, auth.apple_login_failed401/api/v1/user/auth/login/
auth.mfa_challenge_expired401/api/v1/user/auth/2fa/
auth.mfa_code_invalid400/api/v1/user/auth/2fa/
auth.refresh_token_required, auth.refresh_token_invalid401/api/v1/user/auth/refresh/
auth.session_failed400login, /api/v1/user/auth/refresh/
auth.account_banned403every sign-in route
auth.api_key_scope_missing403a scoped route called with a key that lacks the scopesent in detail
HTTP/1.1 429 Too Many Requests Retry-After: 42 Content-Type: application/json {"error": "throttle.rate_limited", "detail": "Too many requests.", "retry_after_seconds": 42}

Free-quota example

HTTP/1.1 402 Payment Required Content-Type: application/json {"error": "Free quota ended. Try paid version."}
HTTP/1.1 402 Payment Required Content-Type: application/json {"error": "No credits. Please recharge your account."}