https://github.com/yihangho/http_status
Provides semantic aliases to HTTP status codes.
https://github.com/yihangho/http_status
http nodejs
Last synced: 2 months ago
JSON representation
Provides semantic aliases to HTTP status codes.
- Host: GitHub
- URL: https://github.com/yihangho/http_status
- Owner: yihangho
- License: mit
- Created: 2019-05-19T13:21:52.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-19T13:51:09.000Z (almost 7 years ago)
- Last Synced: 2025-10-17T00:11:17.115Z (6 months ago)
- Topics: http, nodejs
- Language: TypeScript
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# HTTP Status
Provides semantic aliases to HTTP status codes.
## Example
```javascript
import * as HTTP_STATUS from '@yihangho/http_status';
const handler = async (event) => {
return {
status: HTTP_STATUS.OK,
body: 'Everything is a-ok!'
};
};
```
## Source
The relevant HTTP status codes are taken from the [IANA HTTP Status Code Registry][iana-registry].
[iana-registry]: https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml