diff --git a/lib/index.js b/lib/index.js index a889ef5..96cfe47 100644 --- a/lib/index.js +++ b/lib/index.js @@ -61,7 +61,7 @@ AngularBridge.prototype.getResource = function(name) { }; AngularBridge.prototype.renderError = function (err, redirectUrl, req, res, next) { - res.send(400, err); + res.status(400).send(err); }; AngularBridge.prototype.renderCollection = function(docs, req, res, next) {