Skip to content
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

Status code 0 is not a good one #514

Open
akhomchenko opened this issue Oct 25, 2016 · 1 comment
Open

Status code 0 is not a good one #514

akhomchenko opened this issue Oct 25, 2016 · 1 comment

Comments

@akhomchenko
Copy link
Contributor

err.status || 0 would fail an entire app if no err.status would be found.

If no code is available it is better to return 500 or something like that.

@prayerslayer
Copy link
Contributor

True, not sure how this got in there. Hot needle and copy-paste, probably.

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

No branches or pull requests

2 participants