HTTP 402
HTTP 402 Payment Required is a status code that means the client must pay before the server will return the requested resource.
Definition
Cards and crypto
HTTP 402 Payment Required is a status code that means the client must pay before the server will return the requested resource. Agent payment protocols use this status, or the same idea, to send payment terms with the response.
Why it matters
It is the signal that a resource costs money. An agent that understands a 402 response can read the price and pay without a person filling in a checkout form.
Sources
- x402 docs, HTTP 402, opened 28 November 2026.
Questions and answers
What is HTTP 402?
HTTP 402 Payment Required is a status code that means the client must pay before the server will return the requested resource. Agent payment protocols use this status, or the same idea, to send payment terms with the response.
Why does HTTP 402 matter for agent payments?
It is the signal that a resource costs money. An agent that understands a 402 response can read the price and pay without a person filling in a checkout form.
More terms
See the full glossary, the topics and the safety guide. This page and the glossary are free.