Constructor
new ResponseError(message, response, resource, options)
Creating an HTTP error with message and status code
Parameters:
Name | Type | Description |
---|---|---|
message |
string | Error message |
response |
Response | Response object from fetch |
resource |
string | The resource has been fetched |
options |
string | The resource options |
Properties:
Name | Type | Description |
---|---|---|
name |
string | Error name: ResponseError |
message |
string | Error message |
resource |
string | The resource has been fetched |
options |
string | The resource options |
statusCode |
number | HTTP Error status code |
response |
Response | Response object from fetch |
- Source:
Extends
- HttpError