1.0.0 • Published 6 years ago
@antoineneff/http-status-codes v1.0.0
http-status-codes
Get HTTP status codes description
Install
$ npm install @antoineneff/http-status-codes
Usage
const status = require('@antoineneff/http-status-codes')
// You can use a number or a string
status('200').code // 200
status(200).message // "OK"
status(200).description // "The request has succe..."
status(200) // All of the above
Resources
- MDN docs - List of the HTTP status codes
License
MIT © Antoine Neff