Skip to main content

RequestError

class RequestError extends Error

constructor

new RequestError(message, statusCode, statusMessage)
PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
messagestring
statusCodenumber
statusMessagestring

Properties

statusCode

HTTP response status code

Type: number


statusMessage

The message of the status code

Type: string