Constructor
# new HttpError(status, message)
Create a new instance of the HttpError class.
Parameters:
Name | Type | Description |
---|---|---|
status |
number | the http status code. |
message |
string | an error message. |
Extends
- Error
Class
HttpError wraps any http response which status is != 2xx.
Create a new instance of the HttpError class.
Name | Type | Description |
---|---|---|
status |
number | the http status code. |
message |
string | an error message. |