Response with HTTP status code that you request
http.example.com / 200;
/*
@200: request code
*/# yarn dev
curl "http://localhost:8787/200"-
create a worker
-
paste the code from
index.js -
set route for
http.example.com -
create DNS record for
http.example.com
Cloudflare Workers documentation
Hypertext Transfer Protocol (HTTP) Status Code Registry
MIT