Options
All
  • Public
  • Public/Protected
  • All
Menu

An Error indicating that the HTTP request has failed.

Hierarchy

Overview

Constructors

Properties

Constructors

constructor

  • (message?: string, code?: number, response?: any): RequestError
  • 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

Optional code

code: number

The response's body content.

message

message: string

The message of this error.

name

name: string

The name of this error

Optional response

response: any

The HTTP status code of the response.

Optional stack

stack: string

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method