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 502Sample
{
"ok": false,
"error": {
"code": "upstream_changed",
"message": "The platform's response no longer parses; we are fixing it.",
"retryable": false
},
"credits_charged": 0,
"request_id": "req_0123456789abcdef01234567"
}error.retryable is false. The same request fails the same way.
When it happens
- The docs say this is alerted automatically and fixed on our side. It is not retryable until then.
What to do
- Do not retry. Include
request_idif you write to [email protected].
The response header x-request-id matches request_id. The full list is on errors.