Error reference
Errors use the OpenAI envelope: an HTTP status plus an error.message string.
Status codes
| Status | Meaning | Action |
|---|---|---|
| 400 | Malformed request | Read error.message; fix the payload |
| 401 | Key not found or revoked | Create a new key |
| 402 | Insufficient credit | Top up |
| 429 | Rate limited | Exponential backoff, then retry |
| 502 | Upstream unavailable / bad model name | Verify model, retry |
Retry policy
Retry 429 and 5xx up to three times with jittered exponential backoff. Do not retry 401 or 402.
Placeholder: published rate-limit tiers are not final.