cd /news/artificial-intelligence/http-s-402-error-sat-dead-for-29-yea… · home topics artificial-intelligence article
[ARTICLE · art-62053] src=pub.towardsai.net ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

HTTP's 402 Error Sat Dead for 29 Years — It Just Became a Cash Register for AI Agents

Two hyperscalers, AWS and Cloudflare, have implemented x402 payment support at the edge within two weeks of each other, turning HTTP's long-dormant 402 Payment Required status code into a cash register for AI agents. AWS shipped x402 as a generally available feature of CloudFront and WAF on June 15, while Cloudflare opened the waitlist for its Monetization Gateway on July 1, both using a protocol that Coinbase reports has already processed over 169 million payments across 590,000 buyers and 100,000 sellers in its first year.

read1 min views31 publishedJul 16, 2026
HTTP's 402 Error Sat Dead for 29 Years — It Just Became a Cash Register for AI Agents
Image: Pub (auto-discovered)

Member-only story

There's a status code in the HTTP spec that has been reserved since 1997 and almost never used: 402 Payment Required

. For 29 years it sat there as a placeholder, a joke among backend developers, the "we'll figure out internet money later" IOU of HTTP/1.1.

In the last four weeks, it got a job. On June 15, AWS shipped x402 payment support as a generally available feature of CloudFront and WAF — any site behind Amazon's edge can now charge AI agents per request, settled in USDC, at no extra charge beyond standard WAF pricing. On July 1, Cloudflare opened the waitlist for its Monetization Gateway, the same capability across its network in 330+ cities. Two hyperscalers that together front a massive share of global web traffic implemented the same payment protocol at the edge within two weeks of each other.

And the protocol they picked isn't a speculative whitepaper. Coinbase reports x402 processed over 169 million payments across 590,000 buyers and 100,000 sellers in its first year — before either hyperscaler flipped the switch.

I spent the weekend wiring x402 into a test API and teaching an agent to pay for it. The whole thing took under an hour, the handshake is disturbingly elegant, and I now think per-request agent payments are going to be boring infrastructure by next year. Here's how it works, how to try it in five minutes, and where the skeptics are still right.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @aws 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/http-s-402-error-sat…] indexed:0 read:1min 2026-07-16 ·