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
Http always return status 200 #2841
Comments
release / SHA1 please ? |
latest alpha 29 npm release |
https://github.com/angular/angular/blob/master/modules/angular2/src/http/backends/xhr_backend.ts#L40 |
@timjacobi you can get the status code from |
Thanks for info. Plan of action then? I have some time this weekend :) |
well OTOH, an MVP fix would just pass |
closes angular#2841 - [x] Tests
closes angular#2841 - [x] Tests
closes angular#2841 - [x] Tests
I have a PR open with the fix #2882 |
The bug concerning the status seems to be fixed on my tests, but the statusText still defaults to Ok. Maybe we could have a test on the status code and use the generic http error ( Internal Server Error and so on ). Also, it seems that the EventEmitter returned by Http.request() is calling Observer.next() even when status reports an error. In case of a 4xx or 5xx it should rather pass it to Observer.throw(). edit : actually I found it, there's already an issue for it : #2800 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
In network tab on developer tools in browser status 404.
But in console always object with status 200.
The text was updated successfully, but these errors were encountered: