Errors
Errors
Every error code the API answers with, and what to do about each.
The API answers every error with a problem document (RFC 9457), as application/problem+json:
| Field | What it is |
|---|---|
type | The address of this site's page for the code, which ends /errors/<code> |
title | A short summary, for people |
status | The HTTP status |
code | Stable: branch on this, never on title or detail |
detail | What happened this time, when there's more to say |
hint | The next step, in plain words: what to change, or when to try again |
side | server when the problem is on Burn & Claim's side and retrying later is the fix; client when the request needs changing |
requestId | The same as the Request-Id header, for support |
errors | validation_failed: each field by JSON Pointer pointer, code and detail |
retryAfter | Seconds to wait before retrying, also in Retry-After |
missingPermission | The permission an account needs |
scopes | OAuth scopes the token needs |
A code never changes once it ships. New codes may appear, so treat one you don't know by its HTTP status.
Submitting transactions has its own outcomes, one per transaction, in a 200 answer: see How a cleanup works.
| Code | Status | Title |
|---|---|---|
invalid_request | 400 | The request is not valid |
validation_failed | 400 | The request failed validation |
invalid_api_key | 401 | The API key is unknown or revoked |
unauthorized | 401 | A valid access token is required |
api_key_suspended | 403 | The key's org has no API access on its plan |
forbidden | 403 | The access token does not allow this |
fresh_sign_in_required | 403 | This needs a fresh sign-in |
insufficient_permissions | 403 | A required permission is missing |
insufficient_scope | 403 | A required OAuth scope is missing |
plan_required | 403 | The org's plan doesn't include this |
burner_not_found | 404 | No burner at this host |
not_found | 404 | Not found |
method_not_allowed | 405 | Method not allowed |
challenge_used | 409 | The challenge was answered already: ask for a new one |
conflict | 409 | The request conflicts with the current state |
fees_changed | 409 | The fees changed since the quote: review the new ones |
idempotency_key_in_flight | 409 | The first request is still running |
quote_stale | 409 | The quote is too old to prepare a round from: quote again |
round_stale | 409 | The round is too old to stamp: prepare what is left again |
challenge_expired | 410 | The challenge expired: ask for a new one |
length_required | 411 | The request needs a Content-Length |
payload_too_large | 413 | The request body is too large |
unsupported_media_type | 415 | Unsupported media type |
address_not_payable | 422 | SOL sent to this address would be stuck: use a wallet address |
altcha_failed | 422 | The Altcha proof of work is missing, wrong or expired: solve a new challenge |
confirmation_required | 422 | Something here can't be undone, and the person hasn't confirmed it |
idempotency_key_conflict | 422 | The idempotency key names another request |
nothing_to_build | 422 | Nothing in the selection can be built |
proof_failed | 422 | The proof does not show control of the address |
wallet_needs_sol | 422 | The wallet can't pay the network fee: add SOL to it, then retry |
wallet_too_large | 422 | This address holds too many accounts to clean up here |
quota_exceeded | 429 | The org's monthly quota is spent: anonymous limits apply until it resets |
rate_limited | 429 | Too many requests |
internal_error | 500 | Something went wrong on our side |
upstream_unavailable | 502 | A service the API depends on is unavailable |
scan_busy | 503 | Too many large wallets are being scanned right now |
service_paused | 503 | This action is temporarily paused |
unavailable | 503 | The API cannot serve this request right now |
upstream_timeout | 504 | A service the API depends on timed out |