mongo-http-errors
v1.0.0
Published
Convert some mongo errrors to HTTP errors
Downloads
3
Readme
mongo-http-errors
usage
var mongoHttpErrors = require('mongo-http-errors');
app.use(function(req, res) {
// do something with mongo
});
app.use(log.errors());
app.use(mongoHttpErrors()); // translates some errors to http-errors
app.use(errorHandler());