What is HTTP 402 Payment Required?
HTTP 402 Payment Required is the status code a server returns when a request needs payment before it can be served. HTTP reserved it for future use for decades without defining how payment works; MDN still lists it as nonstandard. x402 and similar conventions now use it to carry machine-readable payment terms.
RFC 7231 and its successor RFC 9110 keep the same wording for 402: the code is reserved for future use. MDN describes it as a nonstandard status with no standard use convention, so different systems use it differently. An individual Internet-Draft published in August 2026, draft-nottingham-httpbis-402, discusses how the code should be used and what clients must guard against.
The draft's security section makes two points that matter for automated clients. Clients should not act on payment information in a response that was not received over an authenticated connection, because an attacker who can insert or modify responses can substitute their own payment information. And clients that pay without direct human involvement need constraints on how much, how often and to whom they pay.
In practice a 402 response now often carries a JSON body describing what to pay, where and how long the offer holds. At PROXIES.SX an unpaid request to api.proxies.sx/v1/x402/pool returns 402 with an x402 version 1 body listing a Base and a Solana entry, each with the USDC amount in six-decimal units, the recipient and maxTimeoutSeconds 900. The same JSON is base64-encoded in the payment-required response header.
Where you meet it
You meet a 402 when a script or agent calls an API that charges per use and has not paid yet. The useful reaction is to read the body rather than treat it as an error: it usually says exactly what payment would unlock the resource, and a client can decide whether that is within its limits.
Common questions
Is a 402 the same as a 401 or 403?
No. A 401 asks for authentication and a 403 refuses access. A 402 says the resource can be served once payment is made, and a body that follows a convention such as x402 says how to pay.
Should a client pay every 402 it receives automatically?
No. Check the recipient, asset and amount against what you expected and against a limit you set, and only act on a 402 received over an authenticated connection such as HTTPS.
Where can I see a real 402 response?
Request https://api.proxies.sx/v1/x402/pool?tier=peer&traffic=1 without payment. The response is a 402 with the quote in the body and in the payment-required header; nothing is charged.
Related terms
Real 4G/5G mobile and residential IPs
PROXIES.SX runs carrier IPs in many countries with HTTP and SOCKS5 on every endpoint. $4/GB down to $2.40/GB at volume, free endpoints and rotation, and your GB never expire.