Skip to main content
Branch on the HTTP status and code, never on the message text. Every error carries a request ID (req_…); include it when you contact support.

Shapes

Inference endpoints use the native shape of their API, so SDK error classes work:
Policy and Admin APIs use RFC 9457 problem details (application/problem+json):
type links to the code’s page here. Validation errors (422 validation_error) add errors[], each with a JSON pointer and detail. Errors after a stream has started end the stream with a terminal event instead; see Streaming.

Retries

Every error response has x-should-retry: true or false, which the OpenAI and Anthropic SDKs follow. Model runtime errors are never passed through as they are: their messages can name internal systems. A request the runtime rejects becomes 400 upstream_invalid_request; runtime failures become 502, 503, or 504. Each code has its own page in this tab, with what it means and what to do.