Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 522 Bytes

api-error.md

File metadata and controls

17 lines (11 loc) · 522 Bytes

ApiError

Thrown when the HTTP status code is not okay.

The ApiError extends the ApiResponse interface, so all ApiResponse properties are available.

Properties

Name Type Description
request HttpRequest Original request that resulted in this response.
statusCode number Response status codee.
headers Record<string, string> Response headers.
result T Response data.
body string | Blob | NodeJS.ReadableStream Original body from the response.