Represents an error response from the API when the status code is not 200.
Constructs an error from the given response and reason.
The original response
The error message from the API.
Optional
The original response object.
Get the status code of this error. e.g 404, 403, 401, 400
Get the status message of this error. e.g "Not Found", "Forbidden", "Unauthorized", "Bad Request"
Static
Indicates whether the argument provided is a built-in Error instance or not.
Represents an error response from the API when the status code is not 200.