FlipziDocs
Guides

Errors

Every error uses the same JSON envelope. Branch on error.code: it is stable, while the message can change and several conditions can share one HTTP status.

Error body

FieldTypeNotes
error.codestringStable machine-readable identifier. Branch on this, not on the message or the status. Example: QUOTA_EXCEEDED
error.messagestringHuman-readable explanation. May change without notice.
error.detailsobjectExtra context, e.g. your_plan and upgrade_url on a plan-gated feature.

401 Unauthorized

Missing or invalid API key (API_KEY_REQUIRED, API_KEY_INVALID).

403 Forbidden

Key valid but not permitted (PLAN_FEATURE_LOCKED, GATEWAY_FORBIDDEN). PLAN_FEATURE_LOCKED carries your_plan and upgrade_url in details.

413 Payload Too Large

Image exceeds 12 MB (PAYLOAD_TOO_LARGE).

422 Unprocessable

Bad input (IMAGE_REQUIRED, IMAGE_INVALID, IMAGE_URL_INVALID, IMAGE_URL_BLOCKED). Does not consume quota.

429 Rate Limited

Two distinct conditions share this status — branch on code: RATE_LIMITED (per-minute burst, retry shortly, see Retry-After) and QUOTA_EXCEEDED (monthly allowance gone until the 1st — retrying will not help).

HeaderMeaning
Retry-AfterSeconds to wait. Present on RATE_LIMITED.

503 Engine Unavailable

Recognition backend is down, or has no index loaded yet (ENGINE_UNAVAILABLE). Transient — retry with backoff, honouring Retry-After when present. Does not consume quota.

504 Engine Timeout

Recognition did not finish inside the gateway's budget (ENGINE_TIMEOUT). Usually means the engine is saturated rather than that the image was bad. Retry with backoff; a smaller image also helps. Does not consume quota.

On this page