Fix res.send(status, num) to send num as json

fixes #2226