x402 APIErrors

Errors

Use the normal x402 decision tree: can the client pay, can it replay cleanly, and can it satisfy SIWX when the route is wallet-bound.

Most common failure cases

Code or classWhat it meansWhat to do next
402 Payment RequiredThe route is paid and the initial request had no acceptable payment proofRead PAYMENT-REQUIRED, build the payment payload, and replay with PAYMENT-SIGNATURE
Settlement rejectionThe replayed payment does not satisfy the live x402 requirementsRe-read the challenge and verify network, asset, amount, recipient, and replay inputs
SIWX verification failureThe wallet-bound route did not accept the SIGN-IN-WITH-X proofCheck wallet, domain, URI, freshness, and signature
Missing execution access tokenThe onchain execution status read is missing X-Onchain-Execution-Access-TokenUse the token returned by onchain route resolution
Validation errorThe request shape is invalid before pricing or fulfillmentFix the route body or query and retry with a new logical request