API reference

TempoError

The error every failed request rejects with.

Fields

  • status
    number
    HTTP status, or 0 when no response arrived.
  • reason
    "http" | "network" | "timeout" | "aborted"
    Why the request failed.
  • url
    string
    The full URL of the last try.
  • method
    string
    The request's method.
  • attempts
    number
    Tries made, the first included.
  • body
    unknown
    The parsed error body, when the server sent one.
OptionTypeDefault
status
HTTP status, or 0 when no response arrived.
number—
reason
Why the request failed.
"http" | "network" | "timeout" | "aborted"—
url
The full URL of the last try.
string—
method
The request's method.
string—
attempts
Tries made, the first included.
number—
body
The parsed error body, when the server sent one.
unknown—

Narrowing

instanceof TempoError works across bundles: the check reads a symbol, not the class identity.

Was this page helpful?

Updated