replacing deprecated res.send(body, status) with res.status(status).send(body)