The HTTP status code that swallowed a payment: how agents stalled on 402
When an AI agent hits a page or API priced per request — a premium dataset, a metered research endpoint, a paywalled publisher — the server returns HTTP 402 Payment Required. As AWS's machine learning blog frames it, the agent has no built-in payment mechanism, no budget attached to the session, and no programmatic way to satisfy the request. The task just stalls and waits for a human to sort it out. The proposed fix is a scheme called x402, which AWS describes as an open standard for HTTP-based machine-to-machine payments: the server returns the 402 with the amount, the accepted payment methods, and an address the agent can use to complete the transaction. Anchor Browser, a cloud browser-automation tool built for agents, has integrated with Amazon Bedrock AgentCore payments to let agents pay for x402-protected pages and APIs 'autonomously,' according to the vendor, and it's now on AWS Marketplace. That's the vendor's account of its own product, not an outside evaluation — treat the autonomy claim as a design goal.
AI-generated discussion · Different perspectives
Handing agents a wallet is a clean technical story right up until you ask who owns the spend. 'Budget attached to the session' is doing a lot of quiet work — every agent that can pay is an agent that can pay too much.
Worth noting the 402 code existed for decades as an unused placeholder. What's new isn't the status code — it's pointing it at an agent and asking the agent to settle the bill itself.