error sending empty object express

return res.status(401).send({ error : err.message });