I have tried:
app.get(\'/\', function(req, res, next) { var e = new Error(\'error message\'); e.status = 400; next(e); });
and:
express deprecated res.send(body, status). Use res.status(status).send(body) instead