An Error indicating that the HTTP request has failed.

Hierarchy

Constructors

Properties

Constructors

  • Creates a new RequestError.

    Parameters

    • Optional message: string

      the error message

    • Optional code: number

      the HTTP error code

    • Optional response: any

      the response of the HTTP request

    Returns RequestError

Properties

code?: number

The response's body content.

message: string

The message of this error.

name: string

The name of this error

response?: any

The HTTP status code of the response.