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
| Field | Type | Notes |
|---|---|---|
error.code | string | Example: QUOTA_EXCEEDED |
error.message | string | |
error.details | object | Extra context for the error (next_step, plan and quota fields). Always an object; {} on errors that carry none, such as API_KEY_INVALID. |
error.request_id | uuid | Same as the X-Request-Id header. Quote it to support. |
304 Not Modified
Nothing changed since the ETag you sent. No body. Still costs its
normal units — the saving is bandwidth and latency, not quota.
401 Unauthorized
Missing or invalid API key (API_KEY_REQUIRED, API_KEY_INVALID).
403 Forbidden
Your plan does not allow this (PLAN_DEPTH_EXCEEDED,
PLAN_FEATURE_LOCKED, GATEWAY_FORBIDDEN). Not billed.
PLAN_FEATURE_LOCKED carries details.required_feature,
details.your_plan, details.next_plan, details.upgrade_url (a
checkout link for that plan) and details.next_step.
404 Not Found
Resource not found (CARD_NOT_FOUND, NOT_FOUND).
A missing card carries details.next_step and details.search
(/v1/cards/search?q=), because the usual cause is a stale or guessed
id. An unknown game points at /v1/catalog/games.
422 Unprocessable Entity
Invalid input (INVALID_UUID, INVALID_INPUT, BULK_LIMIT_EXCEEDED).
BULK_LIMIT_EXCEEDED carries details.requested_ids,
details.your_bulk_cap (the cap for the route called) and, when a
larger plan exists, details.next_plan_bulk_cap. Split the batch to
your_bulk_cap ids and retry.
INVALID_UUID on a card path means a name or other non-id was passed;
details.search is the search for exactly what was sent.
429 Too Many Requests
Per-minute rate limit or monthly quota exceeded (RATE_LIMITED,
QUOTA_EXCEEDED). Quota is monthly and resets on your billing date on a paid flipzi.io plan, otherwise at 00:00 UTC on the 1st.
QUOTA_EXCEEDED details: requested_units, used, limit,
percent_used, remaining, period, resets_at, resets_in_s. RATE_LIMITED details: limit_per_min,
retry_after, monthly_used, monthly_limit. Both carry your_plan,
next_plan, upgrade_url and next_step; when no plan we sell is a
strict improvement, upgrade_available is false and no link is given.
On a paid flipzi.io plan where one-off extra units are on sale,
QUOTA_EXCEEDED also carries unit_packs_url: extra units for the
current quota month, which expire when it ends.
| Header | Meaning |
|---|---|
Retry-After | Seconds to wait before retrying. |
503 Sealed Unavailable
Sealed comparisons are paused or not yet available (SERVICE_UNAVAILABLE).