-
-
Notifications
You must be signed in to change notification settings - Fork 54
Ignore err.status when it is less than 400. #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore err.status when it is less than 400. #1
Conversation
|
Thank you! I will most likely accept this, though not sure when this change can actually make it into |
|
That's understandable. In the mean time I think I can do some things on my end to return that status without abusing it ;) |
|
If you need it, a work-around to implement this feature in your current app.use(function(err, req, res, next){
if (err.status < 400) err.status = undefined
next()
}) |
|
Thanks @dougwilson. I was (ab)using |
Here you go @dougwilson! Let me know if you want anything changed.
This addresses the following issues originally filed in express:
expressjs/express#2194
expressjs/express#2193
expressjs/express#2192