Skip to content

Successful http responses (e.g. 201) returned as errors #19555

@sebek64

Description

@sebek64

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

Metadata

Metadata

Assignees

Labels

area: common/httpIssues related to HTTP and HTTP Clientfreq1: lowregressionIndicates than the issue relates to something that worked in a previous versiontype: bug/fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions