Doing res.sendStatus(501) rather than res.send(501)