Skip to main content
Errors use the OpenAI shape: {"error": {"message": "...", "type": "...", "code": ...}}. The HTTP status is the first thing to read; the type and code narrow it down.

Rate-limit headers

On a deployment with a rate limit, responses carry the headers below. A deployment with no limit sends none.
Retrying. Retry 429, 502, 503 and 504 with exponential backoff, and honour Retry-After. Do not retry 400, 401, 402, 403 or 404: the same request will fail again. Setting retries and a fallback on the deployment (Operating a deployment) does this for you inside the gateway.