Skip to the content

DocsReference

Errors

Error codes and what counts against your quota.

Errors share one shape: { "error": { "code", "message", … } }. Act on code; message is for people and may change.

Error codes
StatusCodeExample message
400invalid_requestUnknown task "text.chit"
400key_in_queryAPI keys are not accepted in the query string; send them in the Authorization header. Rotate a key that was put in a URL.
401invalid_api_keyThe API key is not valid
401missing_api_keySend your API key as Authorization: Bearer <key>
403account_suspendedThis account is suspended
403decision_model_not_alloweddecision.model=jev is available to internal accounts only; use openai or local
403insufficient_scopeThis key lacks the resolve scope this endpoint needs
403ip_not_allowedThis key may not be used from this IP address
403wrong_key_kindManagement keys only call the key-management API (/api/v1/manage); use a live or test key here
404model_not_foundNo model google/nope
413request_too_largeRequest bodies are limited to 64 KB
422no_candidateno_candidate: nothing on your providers meets the need. Says how many candidates each constraint removed, and the nearest miss. Not counted against the quota.
429quota_exhaustedYour plan's 1,000 calls for this period are used up
429rate_limitedRate limit of 10 requests a minute reached

What counts

Errors (4xx other than 422, and 5xx) don't count against your quota. A 422 no_candidate doesn't count either, but it still uses the per-minute rate. It says how many candidates each constraint removed and the nearest miss, so you can see which constraint to relax.

The service never answers 5xx because a data source is down: it always serves the last good catalog.