Fixing warring in server.js

Fixed

express deprecated res.send(status): Use res.status(status).end()
instead server.js:237:11