1.0.0 • Published 4 years ago

@antoineneff/http-status-codes v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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

1.0.0

4 years ago

0.0.1

4 years ago