Error Codes
All errors follow the shape:
{
"error": "human-readable message",
"code": "MACHINE_READABLE_CODE",
"details": { … optional }
}HTTP status reference
| Status | When | Common causes |
|---|---|---|
400 | Bad request | Missing field, unsupported format, malformed JSON |
401 | Unauthorized | Missing/expired token |
402 | Payment required | Free quota exhausted, paid balance = 0 |
403 | Forbidden | Token valid but permission denied for this resource |
404 | Not found | Wrong conversion_id, deleted resource |
405 | Method not allowed | Bad auth payload (e.g. token without user_id) |
413 | Payload too large | File exceeds tier limit, see Limits |
415 | Unsupported media type | Format not in the service’s supported list |
429 | Too many requests | Rate-limited; back off |
500 | Server error | Bug, report with conversion_id |
502 | Bad gateway | Upstream worker crashed; retry safe |
503 | Service unavailable | Maintenance, 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.
| Code | Status | Route | Extra fields |
|---|---|---|---|
throttle.rate_limited | 429 | any route | retry_after_seconds, also sent as the Retry-After header |
auth.login_rate_limited | 429 | /api/v1/user/auth/login/, /api/v1/user/auth/2fa/ | retry_after_seconds |
auth.account_locked | 429 | /api/v1/user/auth/login/ | lockout_minutes, retry_after_seconds |
auth.invalid_credentials | 401 | /api/v1/user/auth/login/ | |
auth.email_not_verified | 401 | /api/v1/user/auth/login/ | |
auth.account_inactive | 401 | /api/v1/user/auth/login/ | |
auth.identifier_required, auth.password_required | 400 | /api/v1/user/auth/login/ | |
auth.login_method_invalid | 400 | /api/v1/user/auth/login/ | |
auth.login_json_required | 415 | /api/v1/user/auth/login/ | |
auth.google_login_failed, auth.apple_login_failed | 401 | /api/v1/user/auth/login/ | |
auth.mfa_challenge_expired | 401 | /api/v1/user/auth/2fa/ | |
auth.mfa_code_invalid | 400 | /api/v1/user/auth/2fa/ | |
auth.refresh_token_required, auth.refresh_token_invalid | 401 | /api/v1/user/auth/refresh/ | |
auth.session_failed | 400 | login, /api/v1/user/auth/refresh/ | |
auth.account_banned | 403 | every sign-in route | |
auth.api_key_scope_missing | 403 | a scoped route called with a key that lacks the scope | sent 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."}Paid-tier no-credits example
HTTP/1.1 402 Payment Required
Content-Type: application/json
{"error": "No credits. Please recharge your account."}