## Errors

Door refusals carry an HTTP status; method faults answer `200` with `error.code`. An empty result on an indexed method: the node lacks that index.

| code | source | meaning | action |
|---|---|---|---|
| **door** |  |  |  |
| 401 | door | unknown api key (UNKNOWN_KEY) | attach the whole key |
| 401 | door | api key suspended: the plan term ended; renew on the dashboard (KEY_SUSPENDED, error.data.status_reason) | rare (term end moves keys to FREE limits): retry shortly or renew; other reasons name themselves (most read "[contact support](mailto:support@carbium.sh)") |
| 401 | door | api key revoked (KEY_REVOKED) | create a new key |
| 401 | door | api key disabled; contact support (KEY_BANNED) | [contact support](mailto:support@carbium.sh) |
| 401 / 403 | door | api key is not enabled for rpc / websocket / grpc / quote / das (SCOPE_*_MISSING); 403 on the websocket handshake | add the plane to the key's scopes |
| 402 | door | credits exhausted (CREDITS_EXHAUSTED, -32002) | stop; renew or buy a plan. Near a balance's end a node may answer 402 while the last credits sit on other nodes; they return within minutes |
| 429 | door | credits for this account are still loading on this node; retry after Retry-After (CREDITS_PENDING, -32005) | not a 402: wait Retry-After (1 s) and retry; usual on first calls, after a burst or restart |
| 403 | door | module not enabled for this account (MODULE_NOT_ENABLED, -32050) | add the quote module on the Modules tab (free plan) |
| 403 | door | client ip address is not on this api key's allowlist (IP_NOT_ALLOWED, -32001) | add the address, or PATCH /v1/keys/{id}/allowlist; do not retry |
| 413 | door | request body exceeds the byte cap: over 50 KB (BODY_TOO_LARGE, -32600) | shrink the body |
| 429 | door | rate limit exceeded / heavy-class rate limit exceeded / blocking-slot capacity exceeded / overloaded (-32005); Retry-After set | already waited 1 s (rate) or 3 s (permit): honor retry-after, back off |
| 429 | door | free tier limit for your network reached / free tier at capacity on this node (FREE_SUBNET_LIMITED / FREE_TIER_BUSY, -32005); FREE keys, and free quote plan calls on any plan | wait Retry-After, or upgrade (quote calls: the quote plan) |
| 503 | door | upstream RPC unavailable, retry later (-32011); -32005 while a cache fills | retry with jittered backoff |
| **node** |  |  |  |
| [-32050](https://carbium.sh/docs/errors/-32050) | door | quote module not enabled on the account | add the quote module |
| [-32051](https://carbium.sh/docs/errors/-32051) | node | quote route search found no path | try another pair or size |
| [-32600](https://carbium.sh/docs/errors/-32600) | door | malformed json-rpc body, or batch exceeds the cardinality cap (over 100); HTTP 400 | fix the request |
| [-32601](https://carbium.sh/docs/errors/-32601) | door | method not served (requestAirdrop, getTokenLargestAccounts, getProgramAccountsV2), or method not found (unknown names, including getAssetProof, getAssetProofs, getAssetProofBatch, getAssetSignatures, getSignaturesForAsset) | do not retry; check the method |
| [-32602](https://carbium.sh/docs/errors/-32602) | validator | invalid params | fix the params |
| [-32602](https://carbium.sh/docs/errors/-32602) | node | getTransactionsForAddress: sortOrder "asc" without filters.slot.gte, .gt or .eq, or with a token filter; or filters.signature (not billed) | bound an ascending walk with filters.slot; page a token filter descending |
| [-32602](https://carbium.sh/docs/errors/-32602) | node | getTransactionsForAddress: this ascending walk did not reach its slot floor (45 s or 25,000 signatures; billed for its upstream calls) | raise filters.slot.gte and retry (with filters.slot.eq, page descending); never retry unchanged |
| [-32602](https://carbium.sh/docs/errors/-32602) | node | getTransactionsForAddress: the walk read no history (billed only for upstream calls that answered) | retry; if it persists, check address and paginationToken |
| [-32603](https://carbium.sh/docs/errors/-32603) | validator | upstream internal error | retry once with backoff |
| [-32010](https://carbium.sh/docs/errors/-32010) | door | program not provisioned for scan (HTTP 200) | ask support to provision it |
| [-32010](https://carbium.sh/docs/errors/-32010) | validator | secondary index missing for this key | do not retry; [contact support](mailto:support@carbium.sh) |

> A malformed or unbatchable request answers `400`, a send in TLS early data `425`. A 5xx other than 501 means an upstream is not answering: retry with backoff.

### ported switch-cases

| code | meaning on agave and other providers | here |
|---|---|---|
| [-32001](https://carbium.sh/docs/errors/-32001) | agave: block cleaned up | a key refusal (unknown, suspended, revoked, disabled, plane not enabled, address off its allowlist), or session expired |
| [-32002](https://carbium.sh/docs/errors/-32002) | agave: simulation failed, or blockhash not found | credits exhausted |
| [-32004](https://carbium.sh/docs/errors/-32004) | agave: block not available for slot | a shape not served (HTTP 501, UNSUPPORTED_SHAPE: sortResults, commitment root, an encoding, the getLargestAccounts filter): change the field per error.data.served, never retry unchanged |
| [-32005](https://carbium.sh/docs/errors/-32005) | agave: node unhealthy, behind by slots | rate or heavy-class ceiling, a FREE network budget, credits loading (CREDITS_PENDING), overloaded, or (503) getSupply's cache filling after a restart: retry after Retry-After |
| [-32010](https://carbium.sh/docs/errors/-32010) | agave: key excluded from secondary indexes | scan not provisioned, classic SPL scan, or index rebuilding |
| [-32011](https://carbium.sh/docs/errors/-32011) | agave: transaction history not available; quicknode: method rate limit reached | upstream unavailable |
| [-32012](https://carbium.sh/docs/errors/-32012) | agave: scan error | scan result over the 10,000-account cap per answer, on every plan: narrow the filters, never retry unchanged |

> Tell them apart by `error.data.reason`. gRPC statuses and WebSocket close codes: [SKILL.md](https://carbium.sh/docs/agents.md).

Each code's own page, every message it is sent with: [-32000](https://carbium.sh/docs/errors/-32000), [-32001](https://carbium.sh/docs/errors/-32001), [-32002](https://carbium.sh/docs/errors/-32002), [-32004](https://carbium.sh/docs/errors/-32004), [-32005](https://carbium.sh/docs/errors/-32005), [-32010](https://carbium.sh/docs/errors/-32010), [-32011](https://carbium.sh/docs/errors/-32011), [-32012](https://carbium.sh/docs/errors/-32012), [-32016](https://carbium.sh/docs/errors/-32016), [-32021](https://carbium.sh/docs/errors/-32021), [-32022](https://carbium.sh/docs/errors/-32022), [-32023](https://carbium.sh/docs/errors/-32023), [-32024](https://carbium.sh/docs/errors/-32024), [-32025](https://carbium.sh/docs/errors/-32025), [-32026](https://carbium.sh/docs/errors/-32026), [-32050](https://carbium.sh/docs/errors/-32050), [-32051](https://carbium.sh/docs/errors/-32051), [-32052](https://carbium.sh/docs/errors/-32052), [-32053](https://carbium.sh/docs/errors/-32053), [-32054](https://carbium.sh/docs/errors/-32054), [-32055](https://carbium.sh/docs/errors/-32055), [-32056](https://carbium.sh/docs/errors/-32056), [-32060](https://carbium.sh/docs/errors/-32060), [-32061](https://carbium.sh/docs/errors/-32061), [-32062](https://carbium.sh/docs/errors/-32062), [-32063](https://carbium.sh/docs/errors/-32063), [-32064](https://carbium.sh/docs/errors/-32064), [-32065](https://carbium.sh/docs/errors/-32065), [-32066](https://carbium.sh/docs/errors/-32066), [-32067](https://carbium.sh/docs/errors/-32067), [-32068](https://carbium.sh/docs/errors/-32068), [-32069](https://carbium.sh/docs/errors/-32069), [-32070](https://carbium.sh/docs/errors/-32070), [-32071](https://carbium.sh/docs/errors/-32071), [-32072](https://carbium.sh/docs/errors/-32072), [-32073](https://carbium.sh/docs/errors/-32073), [-32074](https://carbium.sh/docs/errors/-32074), [-32075](https://carbium.sh/docs/errors/-32075), [-32076](https://carbium.sh/docs/errors/-32076), [-32077](https://carbium.sh/docs/errors/-32077), [-32078](https://carbium.sh/docs/errors/-32078), [-32079](https://carbium.sh/docs/errors/-32079), [-32080](https://carbium.sh/docs/errors/-32080), [-32081](https://carbium.sh/docs/errors/-32081), [-32082](https://carbium.sh/docs/errors/-32082), [-32083](https://carbium.sh/docs/errors/-32083), [-32084](https://carbium.sh/docs/errors/-32084), [-32085](https://carbium.sh/docs/errors/-32085), [-32086](https://carbium.sh/docs/errors/-32086), [-32087](https://carbium.sh/docs/errors/-32087), [-32088](https://carbium.sh/docs/errors/-32088), [-32089](https://carbium.sh/docs/errors/-32089), [-32090](https://carbium.sh/docs/errors/-32090), [-32091](https://carbium.sh/docs/errors/-32091), [-32092](https://carbium.sh/docs/errors/-32092), [-32093](https://carbium.sh/docs/errors/-32093), [-32094](https://carbium.sh/docs/errors/-32094), [-32095](https://carbium.sh/docs/errors/-32095), [-32096](https://carbium.sh/docs/errors/-32096), [-32097](https://carbium.sh/docs/errors/-32097), [-32098](https://carbium.sh/docs/errors/-32098), [-32099](https://carbium.sh/docs/errors/-32099), [-32600](https://carbium.sh/docs/errors/-32600), [-32601](https://carbium.sh/docs/errors/-32601), [-32602](https://carbium.sh/docs/errors/-32602), [-32603](https://carbium.sh/docs/errors/-32603), [-32700](https://carbium.sh/docs/errors/-32700).
