Skip to content

Conversation

JoeKarlsson
Copy link

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.

`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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants