Get HTTP status codes description
$ npm install @antoineneff/http-status-codes
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
- MDN docs - List of the HTTP status codes
MIT © Antoine Neff