HTTP 402 Payment Required: how paid agent access works

HTTP 402 Payment Required, explained for web hosts: how AI crawlers and agents are asked to pay, how Cloudflare uses 402, and how sites can charge for access.

HTTP 402 is the status code a server returns when a request needs payment before it gets a response. For decades it went almost unused. AI crawlers and agents have brought it back, and it now gives website owners a way to charge for the content agents read.

What HTTP 402 means

The HTTP specification reserves 402 Payment Required for future use, without defining how payment should work. A server can return it, but there was no standard way for a client to pay. Cloudflare and others have built that missing part.

Why it matters now

AI crawlers and agents read sites on behalf of AI companies, and a site owner may want to be paid for that. HTTP 402 is how a site asks.

How Cloudflare uses 402

Cloudflare announced pay per crawl in July 2025. A site sets a price per request. When a crawler asks for a paid page without offering to pay, it gets a 402 response with a header stating the price. A crawler that accepts the price, and proves who it is with Web Bot Auth, gets the page, and Cloudflare charges the crawler and pays the site owner, acting as merchant of record.

In August 2025 Cloudflare made customizable 402 responses available to every paid Cloudflare customer, and reported that its customers were already sending more than a billion 402 responses a day.

How a Worker can charge for access

Cloudflare also publishes a template for Workers: a proxy that sits in front of an HTTP backend and returns a 402 with a payment challenge when a request hits a protected route. A request that pays gets through.

What this means for web hosts

On a platform where every customer site sits behind the same router, a host can offer paid agent access as a feature across the fleet. Two principles make it work:

  • The site owner decides. The content belongs to the customer, so charging agents for it is the customer’s choice, turned on per site.
  • The host sets the terms. The host decides the revenue share in its own terms of service.

Questions

What does HTTP 402 mean?

Payment Required. The server will respond once the client pays.

Is HTTP 402 a standard?

The status code is part of HTTP and reserved for future use. Payment schemes built on it, such as Cloudflare’s pay per crawl, define how the payment happens.

Can I charge AI crawlers for my content?

Yes, on platforms that support it. Cloudflare offers pay per crawl, and a Worker can return 402 with a payment challenge.

Do I have to block crawlers that won’t pay?

No. A site can allow some crawlers for free, charge others and block the rest.

Sources

Sell modern hosting under your own name

We are bringing on a select group of hosting partners. Tell us about your fleet and your billing system.

By application, for select hosting partners. Seahawk does not host sites: your Cloudflare account, your customers.