HTTP 402 Payment Required does not, by itself, tell a client how to pay. RFC 9110 reserves the status code for future use and defines no standard payment challenge or retry sequence. Payment-aware services may use 402 to start a protocol-specific flow, so the response headers and body—not the status code alone—determine what a client can do.
What does HTTP 402 Payment Required mean?
The normative definition is deliberately brief. RFC 9110 §15.5.3 says: “The 402 (Payment Required) status code is reserved for future use.” The specification does not define a universal payment method, challenge format, payment credential, proof verification process, settlement step, or retry procedure. Read RFC 9110 §15.5.3.
In practice, a server may use 402 to signal that its own payment flow is required, but that behavior comes from the service or a payment protocol layered on HTTP. A client cannot infer from 402 alone whether payment is accepted, how to make it, or whether retrying will grant access.
Why am I getting a 402 error?
The server may be using 402 to ask for payment before serving a resource, or to report a payment-related problem in a protocol it implements. The response might include a challenge, payment requirements, or an explanation in its body. Those details are implementation- or protocol-specific; RFC 9110 does not assign them a common meaning.
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →#1 Best Overall
Check the response headers and body, and identify which service or protocol issued them. If the request was not expected to involve payment, do not treat the status as proof that a legitimate charge is due. A 402 response also does not guarantee that paying will unlock the resource: in one current Internet-Draft, for example, a server can return 403 when payment is verified but its access policy still denies the request.
Is HTTP 402 a standard payment flow?
No. The status code is part of HTTP, but a complete payment flow is not standardized by its definition. Current proposals and projects give 402 payment-specific behavior in different ways. These examples illustrate distinct approaches; neither should be mistaken for the universal meaning of 402.
Payment HTTP Authentication Scheme: a draft challenge flow
The IETF Datatracker’s The Payment HTTP Authentication Scheme, version draft-httpauth-payment-01, is an Internet-Draft, not an RFC, and may change. It proposes that a server respond with 402 and a WWW-Authenticate: Payment challenge. Challenge parameters can identify the payment method, intent, and request.
Under the draft’s flow, the client evaluates and fulfills the challenge, then retries the resource request with a Payment credential, normally in Authorization: Payment <credential>. The server verifies and settles the payment; if access is allowed, it can return the resource and an optional Payment-Receipt. The draft proposes 402 for missing payment credentials or payment-validation failure, 401 for unrelated authentication failure, and 403 when payment was verified but policy still blocks access. These are draft distinctions, not rules established by RFC 9110.
x402: a separate protocol with its own headers
The x402 project describes a different payment flow. Its project overview describes a 402 response carrying payment requirements, a client selecting a requirement and retrying with a payment payload, and verification that may involve the server or a facilitator before fulfillment and settlement.
The project’s HTTP transport v2 specification names PAYMENT-REQUIRED for information from server to client, PAYMENT-SIGNATURE for information from client to server, and PAYMENT-RESPONSE from server to client. This is x402-specific protocol behavior. Implementations have flexibility, so not every x402 service necessarily uses an identical end-to-end sequence.
Rank #4
What to compare between payment-aware APIs
A 402 response alone does not tell you which payment protocol an API implements. For a meaningful comparison, inspect these details in the API’s documentation and responses:
- Challenge representation: a
WWW-Authenticate: Paymentchallenge in the draft versus x402’sPAYMENT-REQUIREDinformation. - Credential carriage: the draft’s usual
Authorizationheader, or a challenge-selected header, versus x402’sPAYMENT-SIGNATURE. - Payment choice: the methods and intents offered by the draft’s challenge versus x402’s scheme and network requirements.
- Verification and settlement: whether the server handles them or uses a separate facilitator, and what settlement model applies.
- Errors and retries: whether failures produce a fresh challenge or problem detail, how
Retry-Afteris used, and which status codes signal each failure. - Security and operation safety: how the implementation handles TLS, exposed credentials, proof replay, amount and recipient validation, caching, concurrency, and idempotency.
Should I retry a 402 response?
Not by blindly repeating the same request. RFC 9110’s 402 definition supplies no retry rule. The Payment authentication Internet-Draft says servers SHOULD use Retry-After to indicate when a client may retry; its example uses a 60-second delay. That recommendation belongs to the draft, not to the general HTTP meaning of 402. Even when a response gives a retry time, a client must still satisfy the payment challenge.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Best Value
If you are using an API and its payment flow is expected and trusted, treat retry as a payment decision, not an automatic network retry:
- Read the response headers and body to identify the payment scheme and the challenge or requirements.
- Check that the method and intent are supported and expected. Verify the amount, recipient, asset, and any stated expiry before authorizing payment.
- Obtain the required payment proof only after those details are acceptable.
- Retry using the credential and header specified by that protocol, and follow any stated retry timing.
- Handle verification, settlement, expired proof, or policy failures explicitly. A new challenge may be necessary; repeating the same expired or invalid credential may not help.
The Payment authentication draft treats credentials as sensitive bearer authorization, calls for single-use proof semantics, and recommends idempotency handling for non-idempotent methods to reduce duplicate effects. These are proposal-specific security and implementation details. For operations that can change state, such as creating or purchasing something, an automatic retry can cause duplicate effects unless the API provides suitable safeguards.
Quick Recap
What a 402 response does—and does not—establish
- It establishes: the server returned the HTTP status code 402.
- It does not establish: a standard payment mechanism, accepted currency or asset, amount, recipient, proof format, settlement outcome, or retry sequence.
- It may establish additional details: a specific service or protocol can supply those details in its headers, body, and documentation.
- It does not guarantee access: payment can be verified while a separate policy still prevents the requested resource from being served.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




