Definition
HTTP 402 Payment Required
An HTTP status code reserved for future use since 1997, now used by x402 to signal that a request requires payment before processing.
HTTP 402 Payment Required is a standard HTTP response status code that was included in the HTTP/1.1 specification (RFC 2616) but marked as 'reserved for future use.' For decades, it had no standard implementation. The x402 protocol gives it concrete semantics: when a server returns 402, the response headers specify the price, accepted payment token (typically USDC), blockchain network, and payment address. This allows automated clients — particularly AI agents — to handle payment negotiation programmatically.
Related terms
x402 Protocol
An open payment protocol that uses HTTP 402 Payment Required to enable pay-per-call API transactions for AI agents.
Pay-Per-Call
A pricing model where each individual API call is billed as a separate micro-transaction, rather than through subscriptions or rate-limited tiers.
API Marketplace
A curated directory of APIs that AI agents can discover, evaluate, and pay for on a per-call basis.