# Errors & cursors

Every error is `{error: {code, message, remediation, retryable}, meta}`; `meta.charged_units` is 0 on every error except the ones whose outcome is unknown, which report `null`: `settlement_unknown` from the API, and the edge's `upstream_unavailable` / `upstream_protocol` / `origin_unavailable` after a call was dispatched. `remediation` names the parameter, the accepted values, the action or the reset time; `retryable` says whether a plain retry can succeed (429/503 carry `Retry-After`).


## Keys and gateway

- `auth_unavailable`
- `gateway_signature`
- `http_error`
- `internal`
- `issuance_limited`
- `issuance_rate_limited`
- `issuance_unknown`
- `key_ambiguous`
- `key_exists`
- `key_invalid`
- `key_malformed`
- `key_required`
- `key_revoked`
- `maintenance`
- `method_not_allowed`
- `not_found`
- `ops_rate_limited`
- `ops_unauthorized`
- `unverified_rate_limited`
- `upstream_protocol`
- `upstream_unavailable`

## Validation

- `body_too_large`
- `cursor_invalid`
- `idempotency_key_invalid`
- `path_invalid`
- `query_invalid`
- `rail_unsupported`
- `validation`
- `vocabulary`

## Meter

- `allowance_exhausted`
- `billing_unavailable`
- `deadline_exceeded`
- `idempotency_conflict`
- `idempotency_in_progress`
- `idempotency_key_invalid`
- `price_table_changed`
- `replay_unavailable`
- `reservation_lost`
- `reservation_unknown`
- `settlement_unknown`

## Engines and tools

- `app_not_found`
- `capacity`
- `developer_not_found`
- `engine_unavailable`
- `fetch_duplicate`
- `fetch_in_progress`
- `fetch_quota_exhausted`
- `fetch_unavailable`
- `gate_invalid`
- `mode_changed`
- `origin_unavailable`
- `plan_too_large`
- `planning_timeout`
- `read_failed`
- `serving_unavailable`

## Cursors

Cursors are opaque, signed, bound to the base query (the same arguments minus the cursor) and valid 24 h; a foreign, expired or malformed cursor is 400 `cursor_invalid` (remediation: call again with `cursor=null`). Two pages under one `Idempotency-Key` conflict instead of aliasing. Feed promise: unfiltered and `event_types` feeds never go backward, never miss and never re-serve an event under any polling pattern; `app_category` / `developer_id` feeds are a view over current attributes. Every list closes a page early at 256 KiB (`meta.truncated`, continue from `meta.next_cursor`).