web: do not parse failed requests in Apollo Client
Created by: valerybugakov
Context
Throw HTTPStatusError
on unsuccessful HTTP requests made by Apollo Client.
Closes #39911 (closed)
Test plan
-
sg start web-standalone
. - Open the web application with the k8s API as a backend
- See that 401 are thrown before Apollo Client tries to parse HTML responses as JSON.
App preview:
Check out the client app preview documentation to learn more.