The HTTP status code (e.g. 404, 500).
A human-readable error description.
The parsed response body, if the server returned JSON.
OptionaltraceId: stringThe X-Trace-Id response header value, if the server
set one. Useful for correlating client-side errors with backend traces
in observability tools (SigNoz, Jaeger, etc.).
ReadonlybodyThe parsed response body, if the server returned JSON.
OptionalcauseOptionalstackReadonlystatusThe HTTP status code (e.g. 404, 500).
Optional ReadonlytraceThe X-Trace-Id response header value, if the server
set one. Useful for correlating client-side errors with backend traces
in observability tools (SigNoz, Jaeger, etc.).
Error thrown by the typed HTTP client when the server responds with a non-2xx status code.
Example