replace deprecated express methods

res.send(statusCode) is deprecated. I changed the format to res.status(statusCode).end()
Please pull to improve support for Express 4