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
read statusCode from err.statusCode? #11
Comments
Can you point me to where the "node core" is using this field? |
wow~ thanks for such quick reply, for your question, i mean here: https://iojs.org/api/http.html#http_response_statuscode |
OK I thought you meant node core was using err.statusCode somewhere |
In fact I meant the loopback is using the |
I know it's used there. You just said node core as well, so I was confused. You can make a PR, yes, but it'll sit for a month or so, because some of these modules are still tied to Express 3 release schedules until it goes away. Basically feel free because I was going to do it anyway, but don't expect a release soon :) |
Hi This is a question like the title, the loopback framework is using
err.statusCode
to expose the http status code. And I did know the preprocessor would address the issue.However, I just think why not supporting statusCode from the error object, the node core is using this name, so should we use this as well?
Thanks !!!
The text was updated successfully, but these errors were encountered: