Reference
Error envelope and status codes
Every error has one shape, a stable code and a request ID for support without leaking provider details.
Stable error shape
Stable error shape
{
"error": {
"code": "unauthorized",
"message": "Authentication required or expired",
"request_id": "req_682c1cdf73ad4549ad90eedb9c40a539"
}
}Details may add a safe explanation, but code, message and request_id are always present. Log request_id, never the Authorization header.
Status codes used by the API
| Status | Typical code | Meaning |
|---|---|---|
| 400 | invalid_request | Invalid fields, extra input properties, unsupported mode or bad JSON |
| 401 | unauthorized | Missing, invalid, revoked or expired credential |
| 403 | forbidden / origin_not_allowed | Insufficient permission or a browser origin is missing/not allowed |
| 404 | not_found | Unknown operation/resource, including another workspace’s resource |
| 409 | result_not_ready / conflict | The request state does not permit the action yet |
| 410 | result_expired | The stored result passed its retention window |
| 429 | rate_limit_exceeded | Technical limit reached; honor Retry-After when present |
| 503 | source_unavailable / not_configured | The operation or a required service is not executable now |
Unavailable is a valid contract state
Unavailable is a valid contract state: A listed operation can be unavailable because no reviewed source mapping is configured. Unavailability is reported before paid source work; retrying immediately usually does not help. Check the operation contract again later.
Related pages
- Requests, states and resultsThe asynchronous request lifecycle: the 202 acceptance record, status versus phase, when a stored result can actually be read, idempotent replays and how to recover from each terminal state.
- Usage, limits and retentionWhat each monthly plan includes, which technical limits apply, and which limits are operation-specific rather than global promises.
- API versioning and compatibilityURL versioning, operation contract versions and the rules clients can rely on when optional fields appear.