Read an error
When an HTTP request fails, check its status and error.code to decide what to do next. The response also includes a message, optional details and meta.request_id. Keep the request ID in your logs and share it with support if you need help. In your product, show people a clear message rather than the raw API error.
{
"error": {
"code": "invalid_json",
"message": "Request body must be valid JSON.",
"details": null
},
"meta": {
"request_id": "req_...",
"api_version": "2026-07-10"
}
}What to do next
The HTTP status gives you a starting point; error.code tells you the specific reason. Common cases are:
- 400 or 422: Check the request, including required fields and the API version. Change the input before trying again.
- 401 or 403: Check the API key and whether it has access to this operation. Retrying the same request will not fix a permission problem.
- 404 job_not_found: Check the job ID and whether your API key still has access to that job.
- 429 rate_limited or backlog_high: Slow down and retry with backoff. Follow Retry-After if the response includes it.
- 429 quota_exceeded: The monthly allowance is exhausted. Wait for the quota reset or contact us about your limit; an immediate retry will not help.
- 5xx: A service may be temporarily unavailable. Retry status checks with backoff. Avoid blindly repeating a POST request because it may already have created a job; keep the request ID if you need support.
Rate limits and quotas
A 429 can mean a short-term limit, a busy service or an exhausted monthly quota. Read error.code before deciding when to retry. Header values are included when available, so they may be absent on some responses.
- Monthly quota: x-quota-limit, x-quota-remaining and x-quota-reset show your allowance, available quota and reset time when provided.
- Standard quota summary: x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset provide a quota snapshot when available. The reset value is an ISO timestamp.
- Short-term limit: x-operational-ratelimit-limit and x-operational-ratelimit-remaining describe the current operational limit when provided.
- Retry timing: Retry-After, when present, gives a delay in seconds. It is not a signal to retry immediately after a monthly quota is exhausted.
When a job fails
A status request for an existing job can return HTTP 200 even when data.status is failed. That is a job failure, not an HTTP request failure. Read data.error for the reason and see Async jobs for the full polling flow.



