express-boom-2
v0.4.0
Published
Boom response objects in Express
Downloads
21
Readme
express-boom-2
Boom response objects in Express.
Install
npm install express-boom-2 --save
Usage
var express = require('express');
var boom = require('express-boom-2');
var app = express();
app.use(boom());
app.use(function (req, res) {
res.boom.notFound(); // Responsds with a 404 status code
});
For a complete list of methods, see the Boom docs