Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HttpError

Represents a plain HTTP error response.

Hierarchy

Index

Properties

Methods

Properties

code

code: number

HTTP status code of the server response.

message

message: string

name

name: string = "HttpError"

response

response: any

Server response object.

Optional stack

stack: undefined | string

Static Error

Error: ErrorConstructor

Methods

toJSON

  • toJSON(): { code: number; error: boolean }
  • Returns { code: number; error: boolean }

    • code: number
    • error: boolean

Generated using TypeDoc