error
message (and often a message field with more detail).
Status codes
Error shape
Handling errors
401 vs 403
401 vs 403
401 means the credential itself was rejected — check the header and the key.
403 means the credential is valid but not permitted for that action.409 conflict
409 conflict
Common on idempotent create operations (e.g. creating a wallet that already exists
for a customer + network). Treat it as “already done” and read the existing resource.
429 and 5xx
429 and 5xx
Retry with exponential backoff and jitter. Never retry a non-idempotent write
without a stable reference/idempotency key.
Always key your business logic off the HTTP status code first, then the
error string.
Message wording may change; status codes are stable.
