Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HttpError

Thrown on HTTP response with a non-successful status code (4xx or 5xx).

Hierarchy

Index

Constructors

Properties

Constructors

constructor

  • Creates a new HTTP error.

    Parameters

    • message: string

      The error message.

    • status: HttpStatusCode

      The HTTP status code.

    • Optional data: any

      Additional error data.

    Returns HttpError

Properties

Optional data

data: any

Additional error data.

message

message: string

name

name: string

Optional stack

stack: undefined | string

status

The HTTP status code.

Static Error

Error: ErrorConstructor

Generated using TypeDoc