Skip to content

Errors

The gateway returns OpenAI-style error objects:

{ "error": { "message": "...", "type": "invalid_request_error", "code": "..." } }
StatusMeaningWhat to do
400Invalid request (bad params, malformed body)Fix the request.
401Missing / invalid API keyCheck the Authorization header.
402Upstream credit / budget exhausted on a channelRetry (the gateway shifts channels); contact us if persistent.
404Unknown model or pathVerify the model ID and endpoint.
413Payload too largeReduce input size.
429Rate limited or over budgetBack off and retry; see Rate limits.
5xxTransient upstream / gateway errorRetry with backoff; the gateway auto-fails-over across channels.
  • Implement exponential backoff on 429 and 5xx.
  • Treat 402 as transient — multi-channel HA usually recovers on retry.
  • Surface 400/404 to developers (they indicate a request bug, not a transient fault).