diff --git a/packages/api/src/controllers/auth.js b/packages/api/src/controllers/auth.js index bb73d4734..1d890b88f 100644 --- a/packages/api/src/controllers/auth.js +++ b/packages/api/src/controllers/auth.js @@ -22,7 +22,8 @@ function unauthorizedResponse(req, res, text) { // if (req.path == getExpressPath('/connections/list')) { // return res.json([]); // } - return res.sendStatus(401).send(text); + + return res.status(401).send(text); } function authMiddleware(req, res, next) {