Response
Every failure uses this envelope. credits_charged is 0. The message below is the default text for this code. Live messages can change, so branch on error.code.
HTTP 503Sample
{
"ok": false,
"error": {
"code": "overloaded",
"message": "This endpoint's queue is full; retry with backoff.",
"retryable": true
},
"credits_charged": 0,
"request_id": "req_0123456789abcdef01234567"
}This code sends retry-after: 2.
When it happens
- This endpoint's queue is full.
- A duplicate
Idempotency-Keywhile the first attempt is still running is also this code, with the messagea request with this Idempotency-Key is still running; retry shortly.
What to do
- The response includes
retry-after: 2. Wait, then retry. The attempt is free.
The response header x-request-id matches request_id. The full list is on errors.