Errors
The OpenAI-shaped error taxonomy.
Errors are always OpenAI-shaped:
Status reference
Passthrough errors
Upstream 4xx bodies that are already OpenAI-shaped (for example, provider-side validation of your parameters) are passed through with their original status rather than rewrapped.
Retry guidance
Retriable
429, 500, 502 upstream_error. Use exponential backoff with jitter.
Not retriable as-is
400, 401, 404. Fix the request or the key first. 402 is retriable
only after a top-up.

