Skip to main content

Envelope

All errors follow OpenAI’s format:
The body is always valid JSON. param is included when the error relates to a specific field.

Types

Common codes

Error IDs

Every error response includes x-request-id. Include it when reporting issues — our support can look up the full request/response in seconds.

Retrying

Retryable (with exponential backoff + jitter):
  • 429 rate_limit_exceeded
  • 502, 503, 504
Not retryable:
  • 4xx other than 429 — they’re your client’s fault; fix the request
  • 402 insufficient_credits — top up first
Our fallback chains already retry server-side for you if configured — see Fallbacks.