Skip to main content

HTTP 402: Meaning, Causes and My Own Measurement

What HTTP 402 means, when Shopify, Stripe, Anthropic, OpenRouter or Vercel send it and what my measurement of 10,000 domains found.

FHFinn Hillebrandt
AI Application
HTTP 402: Meaning, Causes and My Own Measurement
Links marked with * are affiliate links. If a purchase is made through such links, we receive a commission.

You open a page or call an API and get “402 Payment Required” back. Payment required, but for what?

402 is officially only reserved. The code alone therefore does not tell you what to do. I measured how often the web answers this way:

Domains in the list
10,000
Of those reachable
7,594 of 10,000
Of those answering 402, all at one operator
4 of 7,594 (0.05%)
Own measurement, Nov 18, 2026
gradually.ai

Among 7,594 reachable start pages of the Tranco top 10,000, none made a payment request on November 18, 2026; 402 appeared 4 times, all at one operator, as a block page without a price. Further down I show where 402 really means money.

TL;DRKey Takeaways
  • 402 Payment Required is officially only reserved for future use (RFC 9110). What a 402 response means is decided by the service that sends it.
  • If you see the error in a product, the usual cause is an empty balance, a frozen shop or a failed payment. Read the response text and otherwise ask the provider.
  • Own measurement from November 18, 2026: among 7,594 reachable start pages, none made a payment request. 402 appeared 4 times, all at one operator, as a block page.
  • As a real payment request, 402 appears in protocols such as x402: of 200 listed endpoints, depending on the weighting 59% (one resource per host) to 87.5% (random resources) answered with 402.

1. What does HTTP 402 mean?

HTTP status codes are three-digit numbers a server uses to answer a request. 200 means “OK”, 404 “not found”. 402 stands for “Payment Required”.

According to RFC 9110, section 15.5.3, the code is reserved for future use. The standard of June 2022 defines neither a header nor a body for it. So there is no fixed flow that browsers or programs follow automatically.

You are most likely to confuse 402 with two neighbours:

401 Unauthorized
Meaning
The server does not know you: login missing or invalid.
What you can do
Log in or check your credentials.
402 Payment Required
Meaning
Reserved for future use. The standard sets no fixed rule.
What you can do
Read the response body and headers, ask the provider.
403 Forbidden
Meaning
The server understands the request but refuses to fulfil it.
What you can do
Check your permissions, contact the provider.
Source: RFC 9110, 15.5.3
gradually.ai

2. Why do I see a 402 error?

There are two groups of reasons. Payment protocols for software use 402 as a request to pay and state in the same response what the request costs. You see this when a program or an AI agent calls such services (more in section 4).

The second group is open: some services use the code for their own purposes. In everyday products there is almost always a problem with money or the account behind it. The table shows what the providers write in their documentation (all opened on November 27, 2026):

Shopify Admin API
Meaning
The shop is frozen (“The requested shop is currently frozen.”).
What you can do
As the owner, pay the outstanding balance in the shop admin.
Source
Shopify
Stripe API
Meaning
“Request Failed”: parameters valid, request failed.
What you can do
Read message, code and decline_code; for card errors use another payment method.
Source
Stripe
Anthropic API
Meaning
billing_error: there is an issue with your billing or payment information.
What you can do
Check your payment details in the Claude Console.
Source
Anthropic
OpenRouter
Meaning
The account or API key has insufficient credits.
What you can do
Add credits, then retry. With a Retry-After header, waiting can be enough.
DeepSeek API
Meaning
“Insufficient Balance”: you have run out of balance.
What you can do
Check your balance and add funds on the Top up page.
Source
DeepSeek
Vercel
Meaning
DEPLOYMENT_DISABLED: deployment disabled, for example after exceeded usage limits.
What you can do
Check usage in the dashboard, read Vercel's emails, upgrade to Pro.
Source
Vercel
X API
Meaning
Own observation, 19 Nov 2026, no public source: every search got 402, the account was in the red.
What you can do
Add credit in the developer console.
Source
Own observation

Other providers report the same with other codes: according to its error page, OpenAI uses 429 with the type insufficient_quota for a used-up balance. A 402 alone therefore does not tell you whether a balance, a subscription or something else is missing.

Here is what you can do:

  • As a visitor: Read the text on the page. Check whether you have an open payment, an expired subscription or a used-up quota with that service. Otherwise write to the provider with the URL, the time and the response text.
  • As a developer: Look at the response headers, for example PAYMENT-REQUIRED, WWW-Authenticate or crawler-price, and at the API documentation.
  • As an operator: If you use 402 yourself, say in the text what is missing and how to fix it. The code alone does not explain it. If you want to control bots, my article on blocking AI crawlers with robots.txt helps.

3. How often does the web answer with 402 today?

The starting point is the Tranco list (ID V38GN, created on November 17, 2026), a ranking of the most visited domains. For each of the top 10,000 domains I sent exactly one GET to https://domain/ on November 18, 2026.

More on the method
  • Neutral client with the user agent research-check/1.0, no browser, no AI bot
  • Up to 3 redirects, 10 second timeout, at most 20 requests at once, no cookies
  • For every 402 I stored all headers and the first 2,000 bytes of the body and looked at them by hand

Of the 10,000 domains, 7,594 were reachable. 2,406 (24.1%) gave no answer, mostly because the domain has no web server (1,620 name errors). This is how the status codes of the reachable ones are distributed:

200 OK
80.5%
403 Forbidden
14.7%
404 Not Found
1.8%
3xx (redirect left open)
0.87%
429 Too Many Requests
0.34%
401 Unauthorized
0.25%
503 Service Unavailable
0.25%
402 Payment Required
0.05%
Other codes (28 kinds)
1.3%
Own measurement, Nov 18, 2026
gradually.ai

The large majority answers with 200. The code 403 appeared on 1,114 domains (14.7%), 429 on 26. 4 domains answered with 402, which is 0.04% of all 10,000 and 0.05% of the reachable ones. As section 3.1 shows, they belong to one operator.

3.1 What the four 402 answers contained

I looked at each of the four answers. All of them went from the domain to the address with www. and returned 402 there:

usatoday.com
Tranco rank
631
Final URL after redirect
https://www.usatoday.com/
azcentral.com
Tranco rank
6,516
Final URL after redirect
https://www.azcentral.com/
freep.com
Tranco rank
6,760
Final URL after redirect
https://www.freep.com/
telegram.com
Tranco rank
9,077
Final URL after redirect
https://www.telegram.com/
Source: Own measurement
gradually.ai

In all four cases the body was a short HTML page titled “Access Restricted” with the sentence “We're unable to allow access to this page at this time.” It contained no payment details, no price and none of the headers that payment protocols use. All four answers named the same reporting endpoint (reporting-api.gannettinnovation.com). So it is one operator with four domains, not four independent sites.

Whether the operator wants to charge money with this cannot be read from the answer. It contained nothing on that. Among all 10,000 domains I found no crawler-price, no payment-required, no X-PAYMENT and no WWW-Authenticate with L402 or Payment.

4. Who uses 402 for payments?

Several schemes define what a 402 response has to contain. The table shows the headers from each documentation, which I opened on November 18, 2026:

x402 v2
Server sends
PAYMENT-REQUIRED
Client replies
PAYMENT-SIGNATURE
Note
PAYMENT-RESPONSE answer after payment
x402 v1
Server sends
JSON body
Client replies
X-PAYMENT
Note
Core specification does not name code 402 itself
L402
Server sends
WWW-Authenticate: L402
Client replies
Authorization: L402
Note
Payment over the Lightning Network
Cloudflare Pay per Crawl
Server sends
crawler-price
Client replies
crawler-exact-price / crawler-max-price
Note
Closed beta per docs, page changed on 28 July 2026
MPP
Server sends
WWW-Authenticate: Payment
Client replies
Authorization: Payment
Note
The 402 response must carry Cache-Control: no-store
Sources: x402 v2
gradually.ai

In its documentation, Stripe uses x402 in version 2 and accepts payment as a stablecoin. x402 is a payment protocol. It has nothing to do with tokens of the same name.

This is what a 402 response under x402 v2 looks like. The header holds Base64-encoded JSON, shown decoded here with placeholders:

text
HTTP/1.1 402 Payment Required
PAYMENT-REQUIRED: <Base64-encoded JSON>

{
  "x402Version": 2,
  "error": "<message>",
  "resource": { ... },
  "accepts": [
    {
      "scheme": "<scheme>",
      "network": "<network>",
      "amount": "<amount>",
      "asset": "<payment asset>",
      "payTo": "<recipient>",
      "maxTimeoutSeconds": <seconds>,
      "extra": { ... }
    }
  ]
}

The client repeats the request with the header PAYMENT-SIGNATURE. An overview of all protocols in agentic commerce is in my protocol comparison.

5. How many pay-per-call endpoints are there?

Coinbase runs a public directory (Bazaar) where x402 services register. It can be read without an account. I read it on November 18, 2026 in pages of 100 entries. The directory is one provider's registration list, not a cross-section of the web.

35,215
Entries read
3,256
Distinct hosts
1,563
Hosts with exactly one entry
35,049 / 166
Entries in x402 v2 / v1 format

The directory grows fast. Since the measurement I only read the total from the public interface:

November 18, 2026
Entries according to the API
35,215
November 27, 2026
Entries according to the API
89,149
November 28, 2026
Entries according to the API
90,235
November 29, 2026
Entries according to the API
90,125
November 30, 2026
Entries according to the API
91,225
December 1, 2026
Entries according to the API
91,897
Source: Coinbase x402 Bazaar
gradually.ai

From 35,215 to 91,897 entries: all samples below reflect November 18, 2026, not the newer total. Whether new services, duplicates, or test entries drove the growth is unchecked.

Share held by the largest hosts:

5 largest hosts
14%
10 largest hosts
19%
Coinbase Bazaar, Nov 18, 2026
gradually.ai

A few large hosts hold many entries, and 351 payment options point to test networks left unfiltered.

5.1 What the services ask for

The prices are in the listing, stated in a dollar stablecoin. I evaluated the lowest option per entry (34,832 entries, 383 without a computable price). These are requested prices, not paid ones:

Lower quartile
$0.002
Median
$0.005
Upper quartile
$0.01
95th percentile
$0.1
Coinbase Bazaar, Nov 18, 2026
gradually.ai

The median is $0.005, so a call usually costs a fraction of a cent. The minimum is $0.00001. The maximum of $1,000 is a single case I did not check.

5.2 Do the services really answer with 402?

Two samples of 200 resources each, one GET without payment per resource. In the first, every resource counts equally, so large hosts are heavily represented. In the second, one resource per host is drawn:

Drawn per resource (200)
87.5%
One per host (200 hosts)
59%
Own measurement, Nov 18, 2026
gradually.ai

All response codes across both samples:

402 in total
Per resource
175 (87.5%)
One per host
118 (59%)
of those with payment structure
Per resource
171 (85.5%)
One per host
112 (56%)
405 Method Not Allowed
Per resource
8 (4%)
One per host
50 (25%)
404 Not Found
Per resource
11 (5.5%)
One per host
22 (11%)
200 OK
Per resource
3 (1.5%)
One per host
5 (2.5%)
Other answers
Per resource
3 (1.5%)
One per host
5 (2.5%)
Source: Own measurement, Coinbase directory
gradually.ai

If every resource counts equally, 87.5% answer with 402, and large hosts shape the picture. If every host counts once, it is 59%. Almost all of these answers have a readable payment structure. 405 means the service does not accept the GET, often because it expects POST. That is no fault of the service, but no hit either.

6. What the measurement does not show

  • A neutral client does not see everything. Cloudflare's documentation says an AI crawler gets either 200 with payment intent or 402 with a price. My client does not present itself as one; the documentation does not say how Cloudflare treats it. My 4 holds for a neutral client only. Whether paywalls exist, the measurement does not say.
  • One request, one network, one moment. I measured between 21:40 and 22:26 (MEZ) from a German network. Blocks such as 403 and 429 can depend on the network.
  • Only the home page. Paid content often sits behind API paths that I did not request.
  • Unreachable domains. 2,406 domains did not answer.
    Breakdown

    1,620 name errors, 399 timeouts, 279 certificate and TLS errors, 71 refused connections. Of 40 name errors checked again, 39 still did not resolve. I did not add www. to the domains.

  • The directory is one provider's index. It contains test entries, and a few hosts account for 19% of the entries. It shows what is listed, not what is paid.

If you want to know how to make your own site readable for agents, see the article on agent readiness.

Frequently Asked Questions

Status code 402 stands for “Payment Required”. The HTTP standard (RFC 9110) reserves it for future use and defines neither headers nor content for it. What a 402 response means in practice is therefore up to the service that sends it.

Usually the balance is used up, the shop is frozen or a payment failed. Section 2 lists what Shopify, Stripe, Anthropic, OpenRouter, DeepSeek and Vercel write about it in their documentation. According to its error page, OpenAI reports a used-up balance with 429 instead of 402.

First read the text of the response and check whether you have an open payment, an expired subscription or a used-up quota with that service. As a developer, look at the response headers and the API documentation. If neither helps, ask the provider and include the URL, the time and the response text.

403 Forbidden means the server understands the request and refuses to fulfil it. 402 Payment Required is meant for a missing payment but has no fixed rule. In my measurement 403 appeared on 1,114 reachable domains, 402 on 4.

The code is officially defined, but only as reserved. Real payment schemes still use it, for example x402, L402, MPP and Cloudflare Pay per Crawl. Each uses its own headers, so there is no uniform flow.

x402 is an open payment protocol that uses HTTP 402: a server answers with 402 and states what the request costs, the client pays and repeats the request. It is a protocol for software that pays. It has nothing to do with tokens of the same name.

Almost none in the ordinary web. Among 7,594 reachable start pages (of 10,000 domains), none made a payment request on November 18, 2026. 402 appeared 4 times (0.05% of the reachable ones), all at one operator, as a block page without a price. Among listed x402 services, depending on the weighting 59% (one resource per host) to 87.5% (random resources) of 200 checked answered with 402.

Technically yes, but there is no uniform way. x402, L402 and Cloudflare Pay per Crawl describe schemes for it. According to Cloudflare's documentation (page changed on 28 July 2026), Pay per Crawl is a closed beta. My measurement does not show whether it pays off.

Never miss important AI news

The AI newsletter brings new models, tools and practical tips to your inbox.

FH

Finn Hillebrandt

AI Expert & Blogger

Finn Hillebrandt is the founder of Gradually AI, an SEO and AI expert. He helps online entrepreneurs simplify and automate their processes and marketing with AI. Finn shares his knowledge here on the blog in 125+ articles as well as in his AI Newsletter.

Learn more about Finn and the team or follow Finn on LinkedIn.