Represents a HTTP error
Extends
Errorconstructor(status, statusText, method, url, bodyData)
Constructs a new instance of the
HTTPError
className | Type | Optional | Description |
---|---|---|---|
status | number | No | The status code of the response |
statusText | string | No | The status text of the response |
method | string | No | The method of the request that erred |
url | string | No | The url of the request that erred |
bodyData | Pick<InternalRequest, 'body' | 'files'> | No | The unparsed data for the request that errored |