1.0.0 • Published 6 years ago

@antoineneff/http-status-codes v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 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

6 years ago

0.0.1

6 years ago