Pay per crawl: putting HTTP 402 to work, and the requirement I missed

Cloudflare built a crawler billing system on HTTP 402, the status code that never had a defined meaning. To understand it I wrote my own simulator of the flow, an API and console of my own, and got a signature requirement wrong in a way that turns out to be instructive. Wire traces, the protocol in detail, and the criticism it deserves.