Licence
MIT
Version
1.1.1
Deps
3
Vulns
0
Weekly
0
http-status-error 
Create errors using an HTTP status
Install
$ npm install --save http-status-error
Usage
var httpStatusError = require('http-status-error')
httpStatusError(200)
//=> null
httpStatusError(404)
//=> err.message => "Not Found (404)"
//=> err.statusCode => 404
API
httpStatusError(code) -> null / error
input
Required
Type: number
An HTTP status code.
License
MIT Ben Drucker