HTTP 402 (Payment required) using Lightning + ecash
X-Cashu
X-Cashu is a work-in-progress project that aims to create a 402 Payment Required scheme to monetize REST API access by using ecash in HTTP headers.
https://github.com/cashubtc/xcashu
Proxnut
This proxy forwards requests only if they have a valid cashu token attached to the X-Cashu header.