eroar
v1.1.0
Published
Basic HTTP error code library
Downloads
7
Readme
Eroar
Maps HTTP Errors to Node error objects.
Pre-defined Errors
var err = eroar.NotFound();
res.status(err.statusCode).send(err.message);
Custom Errors
var err = eroar.create(404);
var err = eroar.create(404, 'Not Found');