res.sendStatus does not work when expecting json