0.0.1 • Published 10 years ago
simple-http-errors v0.0.1
Simple HTTP Errors
A simple error maker thingy.
Codes
UNAUTHORIZED: 401
NOT_FOUND: 404
UNPROCESSABLE_ENTITY: 422
(more coming as needed)
Use
var errors = require('simple-http-errors');
//...
if (item === undefined) {
return next(errors.notFound());
}
0.0.1
10 years ago