Skip to content
walukux402 · USDC
Admin
  1. Docs
  2. Getting started
  3. Errors & status codes

Errors & status codes

Errors use standard HTTP status codes and a JSON body that says what went wrong.

Status codes

StatusMeaningWhat to do
402Payment required, or the payment was missing, too small or invalid.Pay the amount in the reply and retry with X-PAYMENT. Check your USDC balance. A wallet that is a smart account or has EIP-7702 delegation is always rejected; use a regular account.
400A parameter is missing or has the wrong value.Check the endpoint's parameters; an enum value must be one of the listed values.
404The path does not exist, or the endpoint is turned off.Check the path in the catalog.
5xxThe actor behind the endpoint is unavailable or did not answer in time.Retry later.

Are failures charged?

A 402 is never charged: nothing was paid yet. A paid 200 costs the endpoint price. Whether a failed paid call (400, 404, 5xx) is charged is not documented yet.