Open JoeKarlsson opened 7 years ago
res.send(err.status, err.message); has been depreciated in the current version of Express. res.status(err.status).send(err.message); is the updated way to handle custom status on a response.
res.send(err.status, err.message);
res.status(err.status).send(err.message);
This commit fixes this bug.
res.send(err.status, err.message);
has been depreciated in the current version of Express.res.status(err.status).send(err.message);
is the updated way to handle custom status on a response.This commit fixes this bug.