new ApiError()
API Error - thrown if an error is returned by the API
Properties
Name | Type | Description |
---|---|---|
statusCode | number | The status code returned by the server |
statusText | string | The status text associated with the status code |
error | string | The error message returned by the API if available |
body | string | The response body as a string if available |
json | Object | The response body as an object if available |