{"slug": "http-s-402-error-sat-dead-for-29-years-it-just-became-a-cash-register-for-ai", "title": "HTTP's 402 Error Sat Dead for 29 Years — It Just Became a Cash Register for AI Agents", "summary": "After 29 years of disuse, HTTP's 402 Payment Required status code has been revived as a payment protocol for AI agents. AWS and Cloudflare both launched support for the x402 protocol in June and July 2024, enabling websites to charge AI agents per request using USDC stablecoins. Coinbase reports the protocol already processed over 169 million payments in its first year, suggesting per-request agent payments could become standard infrastructure by 2025.", "body_md": "Member-only story\n\n# HTTP's 402 Error Sat Dead for 29 Years — It Just Became a Cash Register for AI Agents\n\nThere's a status code in the HTTP spec that has been reserved since 1997 and almost never used: `402 Payment Required`\n\n. 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.\n\nIn 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.\n\nAnd 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.\n\nI 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.", "url": "https://wpnews.pro/news/http-s-402-error-sat-dead-for-29-years-it-just-became-a-cash-register-for-ai", "canonical_source": "https://pub.towardsai.net/https-402-error-sat-dead-for-29-years-it-just-became-a-cash-register-for-ai-agents-0e5d0ac0e983?source=rss----98111c9905da---4", "published_at": "2026-07-16 12:31:01+00:00", "updated_at": "2026-07-16 13:00:57.070434+00:00", "lang": "en", "topics": ["artificial-intelligence", "ai-agents", "ai-infrastructure", "ai-policy"], "entities": ["AWS", "Cloudflare", "Coinbase", "HTTP", "USDC"], "alternates": {"html": "https://wpnews.pro/news/http-s-402-error-sat-dead-for-29-years-it-just-became-a-cash-register-for-ai", "markdown": "https://wpnews.pro/news/http-s-402-error-sat-dead-for-29-years-it-just-became-a-cash-register-for-ai.md", "text": "https://wpnews.pro/news/http-s-402-error-sat-dead-for-29-years-it-just-became-a-cash-register-for-ai.txt", "jsonld": "https://wpnews.pro/news/http-s-402-error-sat-dead-for-29-years-it-just-became-a-cash-register-for-ai.jsonld"}}