Menu
Errors
How the API refuses a request: the error object, its codes, and what each status means.
Every refusal is a JSON object (or EDN, when asked for) with an error:
{"error": {"code": "insufficient-funds", "message": "…"}}Software matches on code, never on message, which is for a person. Each operation lists the codes it answers under each status, with what to do; some codes carry more facts (a refused charge carries balance and estimate; invalid-params names the field).
upstream-unavailable,unavailableandledger-unavailablemean a part of the platform did not answer: try again later.internalis an unexpected failure: try again, then contact support.- A body under a content type other than JSON or EDN is refused 415
unsupported-media-type.
The weird command line turns refusals into exit codes.
The error object#
error, object, required —codeandmessagealways; the other properties only with the codes each names. A refused charge also carries the facts of the refusal (for insufficient-funds:balance,estimate).max_content_bytes, value — with content-too-largen, value — with car-invalidmessage, string, required — the refusal in words, for a person; never matched onaccepted_dpa_version, string — with acknowledgement-outdatedgrace_until, value — with account-unpaidlang, string — with acknowledgement-outdated (one ofro,en)min, integer — with invalid-paramscharged, value — with not-enough-providershostname, string — with hostname-blockedremoving, value — with copy-change-in-progressgranted, array of strings — with insufficient-scopereadable, value — with copy-not-readablemanaged_by, value — with managed-recordneeds_support, value — with piece-ids-unknowneligible_providers, value — with not-enough-providersmax, integer — with invalid-paramslost, value — with copy-change-in-progressbase, value — with free-names-not-readycopy_jobs, value — with copy-change-in-progressprovider, string — with invalid-paramsreceived_bytes, value — with content-too-largeexpected, string — with invalid-paramsname, value — with managed-recordlimit, value — with domain-limit-reached, domain-pin-limit-reachedunpaid_since, value — with account-unpaidcopies, value — with copy-change-in-progress, not-enough-providersplacement_regions, value — with location-notice-outdated, location-notice-required, not-enough-providersfield, string — the failing parameter of an invalid-params refusal, when one is namedtext, string — with acknowledgement-outdatedtext_key, value — with location-notice-outdated, location-notice-required, location-notice-unavailabledomains, value — with content-in-useuntil, string — with name-quarantinedcopy_no, value — with copy-change-in-progress, copy-not-readable, piece-ids-unknownkind, string — with acknowledgement-outdatedorder, string — with invalid-paramsexcluded_by_region, value — with not-enough-providersrequired, one of — with insufficient-scope, terms-acceptance-required- variant 1: string — insufficient-scope: the scope the route demands
- variant 2: array of objects — terms-acceptance-required: the documents to accept
kind, string, requiredversion, string, required
state, value — with session-not-openversion, string — with acknowledgement-outdated, location-notice-outdated, location-notice-required, location-notice-unavailablemissing, value — with parts-missingargument, string — with invalid-paramsreason, string — with account-suspended, car-invalid, content-blocked, hostname-blocked, invalid-paramsdeployment_id, value — with managed-recordblockers, array of objects — with closing-blocked, second-factor-in-usekind, stringcount, integermessage, string
retry_after, integer — with account-too-new, claim-rate-limited (at least 1)accepted_version, string — with acknowledgement-outdated, location-notice-outdatedserved_elsewhere, value — with content-in-usecid, string — with car-invalid, content-blockedmin_copies, value — with copies-at-minimumsize_bytes, value — with content-too-large, zip-too-largerrtype, value — with managed-recordretry_at, string (date-time) — with account-too-new, claim-rate-limitedcode, string, required — what went wrong, for software to match on (each route lists the codes it answers and what to do about them);upstream-unavailable,unavailableandledger-unavailablemean a part of the platform did not answer: try again later;internalis an unexpected failure: try again, then contact support (one ofaccess-denied,account-deleted,account-suspended,account-too-new,account-unpaid,acknowledgement-outdated,authorization-pending,base-closed,base-full,body-too-large,busy,capacity-exhausted,capacity-unavailable,car-invalid,charge-not-set,charges-not-published,claim-limit,claim-rate-limited,closing-blocked,cnp-required,company-identity-incomplete,conflict,content-blocked,content-in-use,content-too-large,contract-not-for-sale,copies-at-minimum,copy-change-in-progress,copy-not-readable,credits-not-on-sale,delegate-blocked,delete-in-progress,domain-limit-reached,domain-pin-limit-reached,domain-retired,dpa-not-published,email-taken,enrolment-required,free-names-not-ready,hostname-blocked,hostname-taken,insufficient-funds,insufficient-scope,internal,invalid-client,invalid-code,invalid-grant,invalid-params,invalid-state,invalid-token,invalid-totp,ip-mismatch,ledger-unavailable,location-notice-outdated,location-notice-required,location-notice-unavailable,malformed-body,managed-record,missing-charge,name-forbidden,name-quarantined,name-reserved,name-suspended,name-taken,not-available,not-enough-providers,not-found,not-implemented,nothing-to-refund,origin-refused,owner-insufficient-funds,owner-profile-incomplete,parts-missing,payment-disputed,payment-required,payments-disabled,piece-ids-unknown,precondition-failed,profile-incomplete,provider-unavailable,quota-exceeded,rate-limited,second-factor-in-use,send-failed,session-expired,session-not-open,session-required,slow-down,stats-detail-unavailable,stats-owner-only,step-up-required,storage-not-enabled,terms-acceptance-required,token-revoked,too-many-open-orders,totp-required,tunnel-limit,unauthorized,unavailable,unsupported-media-type,upstream-unavailable,verification-expired,withdrawal-period-over,zip-too-large)contact, string — with account-suspended, content-blocked, hostname-blockeddpa_version, string — with acknowledgement-outdatedcredits, integer — with invalid-paramsmax_bytes, value — with zip-too-largepath_maps, value — with content-in-use