AI API Error Code Lookup — OpenAI, Claude & Gemini
Paste any status code or error string from the OpenAI, Anthropic, or Google Gemini API and instantly see what it means, the likely cause, the fix, and whether it is safe to retry. 24 codes, sources cited, fully offline — no key, no upload.
How it works
When a call to an LLM API fails, the SDK usually surfaces a bare HTTP status code and a short type or codestring with little context. This tool maps each of those signals back to a plain-English meaning and a concrete action, using a curated table transcribed directly from the three providers' official error documentation.
The data is a fixed array of 24 records — one per (provider, HTTP status, error type) triple. Each row carries the meaning, the likely causes, a recommended fix, a list of aliases (the SDK exception names you might paste, like RateLimitError), and a link to the source doc. Matching is a case-insensitive substring search across the status, error type, aliases, and meaning, so a numeric query like 429 matches on status while a word query like overloaded matches the type and alias. Selecting a provider scopes the rows; the retryable toggle hides anything you must fix rather than retry.
The retry verdict for every row is taken verbatim from the provider's own guidance, then grouped into three categories:
- Retry with backoff— transient server faults: HTTP 500, 503, Anthropic's 529
overloaded_error, Gemini's 504DEADLINE_EXCEEDED, and the 429 rate limits. Retry the same request with exponentially growing delays (about 1s, 2s, 4s, 8s, 16s) plus random jitter, capped at a sane maximum. - Retry after delay— Anthropic's 429
rate_limit_errorreturns aretry-afterheader; honour that exact value instead of guessing. - Do not retry— client-side errors (400/401/403/404) and OpenAI's
insufficient_quota(a billing problem). Retrying these fails identically; fix the request, key, or billing first.
As a correctness check, a second function independently re-derives each row's verdict from the documented status/type rules and compares it to the stored value — the badge in the tool header confirms all 24 rows agree. No live network calls are ever made, so the lookup is deterministic and works offline.
Worked examples
Frequently asked questions
Sources & references
- Anthropic — API errors & retry guidance
- OpenAI — API error codes reference
- Google Gemini — API troubleshooting guide
The 24-row table was last cross-checked against these official docs on 2026-06-24. Providers occasionally rename error types — if a live doc disagrees with a row here, trust the doc and email me so I can update it.
Related tools
Comments & feedback
Spotted a bug or want an improvement? Tell us — our team reviews every comment, and good ideas get built. Comments are public and anonymous.
Spotted an error type we're missing, or a verdict that drifted from the docs?
Email me at [email protected] — most fixes ship within 24 hours.