HTTP 402 Revived: How the Unused Status Code Became the Backbone of AI Agent Payments
Crypto_APIs · reddit · 2026-08-04
The HTTP 402 "Payment Required" status code, reserved since the 90s but never standardized, is now the backbone of machine-native payments via the x402 protocol.
How it works: An AI agent requests a paid endpoint → the server responds with a 402 status and payment requirements (asset, amount, network, recipient) → the agent signs a USDC payment locally (EIP-712/EIP-3009, keys never leave the machine) → it retries the request with the signed payload → the server verifies, settles on-chain, and returns data. The whole process takes seconds without accounts or cards.
Why it matters: AI agents cannot pass KYC or click checkout. x402 provides a native way to buy data, tools, and compute. To prevent runaway spend, per-transaction, daily, and monthly limits are enforced before a signature is generated.
Current ecosystem: Roughly 200k transactions occur daily with an average payment well under $1, mostly using USDC on Base and Solana. The market is still in its infancy with a few thousand active sellers, presenting a massive opportunity.
More from coding & agent
- Cloudflare Launches CI SDK with AI Agents for Self-Healing Failed Builds — dinasaur_404 · 2026-08-05
- A Developer's Pain Point: Why Do All Side Projects Need a Research Agent? — GregKamradt · 2026-08-05
- Dev Builds Ancient Egypt Tower Defense Game with AI Stack, Marvels at 2-Year Progress — CommercialShelter595 · 2026-08-05
- Firecrawl Launches anydoc: Blazing Fast Local Document Parsing to Markdown in <5ms — devdigest · 2026-08-05
- Cursor Open-Sources MoK: MoE Training Megakernel for NVL72 with 2x+ Forward Speedup — eliebakouch · 2026-08-05
- OPREP: Open-Source OSINT Analysis Platform Powered by Local LLMs — Jesus_Morty · 2026-08-05