Skip to Content
Simpang Router

Errors

Every error uses the format of the API you called.

StatusCodeMeaning
401invalid_api_keyMissing, unknown, revoked, disabled or expired key
402budget_exceededA budget would go over; the message says which and when it resets
403model_not_allowedThe model isn't in your access or the key's list
403account_suspendedThe account is suspended
404route_not_foundThat endpoint isn't available
413request_too_largeBody over 32 MB
429rate_limitedKey limit or upstream limit; see Retry-After
502upstream_unreachableThe upstream didn't answer
504upstream_timeoutThe upstream took too long

Shapes

The same budget error in each format. OpenAI:

{ "error": { "message": "...", "type": "insufficient_quota", "code": "budget_exceeded" } }

Anthropic:

{ "type": "error", "error": { "type": "billing_error", "message": "..." } }

Gemini:

{ "error": { "code": 402, "message": "...", "status": "RESOURCE_EXHAUSTED" } }

On this page