https://github.com/initdc/http-status-codes
Response with HTTP status code that you request
https://github.com/initdc/http-status-codes
http statuscode
Last synced: 10 months ago
JSON representation
Response with HTTP status code that you request
- Host: GitHub
- URL: https://github.com/initdc/http-status-codes
- Owner: initdc
- License: mit
- Created: 2021-09-27T04:59:20.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-01T11:38:05.000Z (almost 4 years ago)
- Last Synced: 2025-01-20T23:48:34.108Z (about 1 year ago)
- Topics: http, statuscode
- Language: JavaScript
- Homepage: https://http.m02.link/200
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HTTP-status-codes
> Response with HTTP status code that you request
## Design
```js
http.example.com / 200;
/*
@200: request code
*/
```
## Usage
```sh
# yarn dev
curl "http://localhost:8787/200"
```
## Deploy
1. create a worker
2. paste the code from `index.js`
3. set route for `http.example.com`
4. create DNS record for `http.example.com`
## Reference
[Cloudflare Workers documentation](https://developers.cloudflare.com/workers/)
[HTTP response status codes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status)
[Hypertext Transfer Protocol (HTTP) Status Code Registry](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml)
## Powered by
[Cloudflare Workers](https://workers.dev/)
## License
MIT