Fields
statusnumberHTTP status, or0when no response arrived.reason"http" | "network" | "timeout" | "aborted"Why the request failed.urlstringThe full URL of the last try.methodstringThe request's method.attemptsnumberTries made, the first included.bodyunknownThe parsed error body, when the server sent one.
| Option | Type | Default |
|---|---|---|
statusHTTP status, or 0 when no response arrived. | number | — |
reasonWhy the request failed. | "http" | "network" | "timeout" | "aborted" | — |
urlThe full URL of the last try. | string | — |
methodThe request's method. | string | — |
attemptsTries made, the first included. | number | — |
bodyThe parsed error body, when the server sent one. | unknown | — |
Narrowing
instanceof TempoError works across bundles: the check reads a symbol, not the class identity.