angular/packages/common/http
Sebastian Barfurth 1b73c23597 fix(http): propagate plain errors when parsing fails (#62765)
The fetch backend now propagates the plain body when parsing the body fails.
This replicates the behavior of the XHR backend introduced in #19773.

The current state completely obfuscates errors of the "wrong" response type.
However, it's not uncommon for successful requests to return one type and
errors to return another type. Propagating the plain error allows downstream
error consumers to reason about the error body and decide how to parse it
depending on application needs.

PR Close #62765
2025-07-24 09:23:24 +00:00
..
src fix(http): propagate plain errors when parsing fails (#62765) 2025-07-24 09:23:24 +00:00
test fix(http): propagate plain errors when parsing fails (#62765) 2025-07-24 09:23:24 +00:00
testing build: remove all usages of the interop_deps attr for ts_project and ng_project (#62732) 2025-07-21 13:03:09 -04:00
BUILD.bazel build: remove all usages of the interop_deps attr for ts_project and ng_project (#62732) 2025-07-21 13:03:09 -04:00
index.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
PACKAGE.md docs: Update guide link in http package md file (#59955) 2025-04-08 09:20:19 -07:00
public_api.ts feat(common): introduce experimental httpResource (#59876) 2025-02-14 18:40:37 +00:00