Creates a new RequestError.
Optional
message: stringthe error message
Optional
code: numberthe HTTP error code
Optional
response: anythe response of the HTTP request
Optional
codeThe response's body content.
The message of this error.
The name of this error
Optional
responseThe HTTP status code of the response.
An Error indicating that the HTTP request has failed.