LLM API Error Codes

The build is broken and you have pasted a wire error into a search box. This is the exact body each provider sends, why it happens there and not on its neighbor, and a fix you can run — not a retelling of the provider's own docs.

What does this LLM API error mean and how do I fix it?

5 provider-specific error pages are registered here, each with the exact wire body, why it happens on that provider and not its neighbors, and a fix as executable code — not paraphrased provider docs. Errors whose fix is identical across every provider (bad JSON, a missing key, an oversized payload) are answered inline below instead of getting a page each.

Verified 2026-08-09

Provider-specific errors

ProviderErrorHTTPRetryableStatus
Anthropicmax_tokens: Field required400NoPreview (draft) →
OpenAIParameter locked to a fixed value400NoPreview (draft) →
Anthropicoverloaded_error529YesPreview (draft) →
OpenAIrate_limit_exceeded429YesPreview (draft) →
Anthropicrate_limit_exceeded429YesPreview (draft) →

Same fix on every provider — no page needed

These errors have the same answer regardless of which provider sent them, so publishing one page per provider would just be the same sentence eleven times.

ErrorFix
bad_jsonThe request body is not valid JSON, or is missing a required top-level field — validate it against the provider's schema before sending, on every provider.
auth_missingNo API key was sent at all — check the header name (Authorization: Bearer vs. x-api-key differ by provider) and that the environment variable is actually loaded.
payload_too_largeThe request body exceeds the provider's size ceiling — split the payload, or drop attached content that isn't needed for this call.

Full error taxonomy: /errors/data.json — cite this dataset directly.

Comparing providers before you build?

Run the same prompt across every model side by side before you commit to one provider's error surface.

Try It Free