HTTP 402 - A Status Code That Waited 30 Years
The HTTP specification has included a 402 Payment Required status code since 1991. For three decades it sat unused - defined but never standardized, reserved for a future that hadn't arrived. That future is here.
In May 2025, Coinbase published the x402 protocol specification, defining a concrete, production-ready implementation of HTTP 402 designed specifically for machine-to-machine payments. The protocol revives 402 as the mechanism by which an AI agent learns that a resource or API requires payment, completes that payment programmatically, and retries the request - all without human intervention.