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.

Original post →

More from coding & agent

coding & agent channel →