ApiError
Sourceimport { ApiError } from "@prestojs/rest";
Indicates a response outside the 200 range
API
Constructor
new ApiError(status,statusText,content)
SourceParameter | Type | Description | |
---|---|---|---|
* | status | number | response status code |
* | statusText | string | HTTP status code message |
* | content | any | the contents returned by server as processed be decodeBody |