Observed since 20 Oct, 19:57 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
402 payments
Note: This repository contains experimental work from 2016 implementing HTTP 402 with Solid. We are now exploring modern HTTP 402 implementations and standards for R&D purposes.
For today's hackday I am going to try and start to build an access controlled "route" in solid-server, which grants access to a resource based on a credit system. If you have credits, it will show you the resource. If not you will get a 402. This builds a bit more functionality on the code written for the previous hack day. I'll try and incorporate the work from the web payments WG http://w3c.github.io/webpayments-http-api/.
The HTTP 402 "Payment Required" status code, long dormant since HTTP/1.1, has seen significant adoption in 2025. Here are notable projects and standards:
The demo contains 4 components
Each was deployed as a custom route with its own handler.
Installation is via
git clone https://github.com/melvincarvalho/402.git
Then run
npm install
$ bin/server.js --port 8443 --ssl-key path/to/ssl-key.pem --ssl-cert path/to/ssl-cert.pem
# server running on https://localhost:8443/
You need an SSL certificate you get this from your domain provider or for free from Let's Encrypt!.
If you don't have one yet, or you just want to test solid, generate a certificate
$ openssl genrsa 2048 > ../localhost.key
$ openssl req -new -x509 -nodes -sha256 -days 3650 -key ../localhost.key -subj '/CN=*.localhost' > ../localhost.cert
Using webcredits it is possible to set up a faucet using
credit create
credit genesis
credit insert https://w3id.org/cc#coinbase 50000 '' https://w3id.org/cc#faucet
Download counts and popularity will appear here as the collector receives them.
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 19:57 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:041d2adf696b3b21fb934191fe8e993cf4d46dc0f6cec1aa2ed4375c81c227b3