send-boom
v0.1.0
Published
Send boom errors over http
Downloads
5
Readme
send-boom
Send a Boom error over http.
Installation
npm install --save send-boom
Usage
var http = require('http');
var Boom = require('boom');
var sendBoom = require('send-boom');
http.createServer(function (req, res) {
var err = Boom.badRequest('Some error!');
sendBoom(req, res, err);
}).listen(8080);
Contributing
npm run test
License
MIT