-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Successful http responses (e.g. 201) returned as errors #19555
Copy link
Copy link
Closed
Labels
area: common/httpIssues related to HTTP and HTTP ClientIssues related to HTTP and HTTP Clientfreq1: lowregressionIndicates than the issue relates to something that worked in a previous versionIndicates than the issue relates to something that worked in a previous versiontype: bug/fix
Description
I'm submitting a...
[X] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
HttpClient observables returns 201 (and probably other 20X except 200) http status as error.
Expected behavior
Status < 300 should be returned as next, not error.
Minimal reproduction of the problem with instructions
I can prepare a plunker if desired (or unable to reproduce) - tell me if needed.
What is the motivation / use case for changing the behavior?
This is a regression between 4.3 -> 4.4. In 4.3.6, it is correct, in 4.4.4, it is not.
It may be related to another 4.3 -> 4.4 HttpClient regression: #19103.
Environment
Angular version: 4.4.4
Browser:
- [X] Chrome (desktop) version 61
For Tooling issues:
- Node version: 6.11.3
- Platform: Linux
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: common/httpIssues related to HTTP and HTTP ClientIssues related to HTTP and HTTP Clientfreq1: lowregressionIndicates than the issue relates to something that worked in a previous versionIndicates than the issue relates to something that worked in a previous versiontype: bug/fix