0.1.0 • Published 9 years ago
http-error-util v0.1.0
HTTP Error Util
Simple module to generate Error objects with properties:
name
status
message
This makes it extremely easy to plugin into Express' error handling middleware.
Installation
$ npm install http-error-util --save
Example
var httpError = require('http-error-util');
new httpError(http.OK, 'OK');
License
MIT