Class ResponseError
HTTP Response Error
Defined in: response_error.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
ResponseError(response, request)
ResponseError is a wrapper for request errors, this makes it easier to pass
an error to the callbacks of the async functions that still retain their
extra contextual information passed into the arguments of requests's error
handler
|
| Field Attributes | Field Name and Description |
|---|---|
|
The error message.
|
|
|
The request.
|
|
|
Actual response from the server.
|
|
|
Status of the response.
|
Class Detail
ResponseError(response, request)
ResponseError is a wrapper for request errors, this makes it easier to pass
an error to the callbacks of the async functions that still retain their
extra contextual information passed into the arguments of requests's error
handler
- Parameters:
- {object} response
- Response HTTP client
- {object} request
- Request description
Field Detail
message
The error message.
request
The request.
response
Actual response from the server.
status
Status of the response.