Documentation / API · Errors
Errors, limits, and what to do next.
Errors are a JSON object with a human-readable sentence. The status code tells your relay whether to retry, fix the request, or fall back.
Last updated
Error shape
ErrorEvery 4xx/5xx
{
"error": "Authenticate with Authorization: Bearer sk_. (server secret key)."
}
Status codes
| Status | Meaning | What to do |
|---|---|---|
| 400 | The request is malformed or a field is out of bounds. | Fix the payload; do not retry unchanged. |
| 401 | Missing or bad credential. | Check the key and the environment; do not loop. |
| 403 | Origin not allowed, or the account/workspace is not permitted. | Check allowed origins and workspace access. |
| 404 | Unknown route or method. | Check the path. |
| 409 | Conflict, such as a charge in x402 mode with no wallet. | Configure the wallet or switch mode. |
| 413 | The body is too large. | Send the bounded evidence, not the whole page. |
| 429 | Rate limit or plan quota. | Back off; 429 is not billable. A retry is another call. |
| 5xx | The service failed. | Retry with a cap, or use your fallback. |
Rate limits
Rate limits apply per key and per route. Specific thresholds are not published; a 429 is the signal that you are at one. A relay should back off, not retry immediately.
Quota versus rate limit
- Rate limit: too many requests in a window. Back off and retry later.
- Plan quota: the monthly allowance is exhausted. Free pauses new scores; Pro and Business keep scoring but turn enforcement off and flag the workspace.
- Developer tests: never billable and never count toward the plan.
Fallbacks
Decide per route before you enforce: fail open on a low-risk read, step up or fail closed on a spend. The operations guide has a timeout and fallback matrix.
Related
- Operations — timeouts and fallbacks
- Troubleshooting — symptom to cause
- Usage & quota — plan state
- Support — when it is not the request