HTTP status
Contains an array mapping HTTP status code to its message
const status = require('http-status')
console.log(status[200]) // OK
console.log(status[404]) // NOT_FOUND
Contains an array mapping HTTP status code to its message
const status = require('http-status')
console.log(status[200]) // OK
console.log(status[404]) // NOT_FOUND
npm i @sertis/http-status
1
1.0.1
MIT
2.45 kB
3