Create errors using an HTTP status
$ npm install --save http-status-error
var httpStatusError = require('http-status-error')
httpStatusError(200)
//=> null
httpStatusError(404)
//=> err.message => "Not Found (404)"
//=> err.statusCode => 404
Required
Type: number
An HTTP status code.
MIT © Ben Drucker