Skip to content

Comments

Updated Express error handling#25

Open
JoeKarlsson wants to merge 1 commit intoauth0-blog:masterfrom
JoeKarlsson:JoeKarlsson1-express-status-patch
Open

Updated Express error handling#25
JoeKarlsson wants to merge 1 commit intoauth0-blog:masterfrom
JoeKarlsson:JoeKarlsson1-express-status-patch

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