Options
All
  • Public
  • Public/Protected
  • All
Menu

A custom HTTP error to pass back in event of deployment failure.

Hierarchy

  • TypedError
    • HTTPError

Index

Constructors

Properties

Constructors

constructor

  • new HTTPError(code: number, message: string): HTTPError
  • Constructs a new HTTP error.

    Parameters

    • code: number

      HTTP code to set.

    • message: string

      Message to send back as reason error occurred.

    Returns HTTPError

Properties

httpCode

httpCode: number

HTTP error code.

message

message: string

Message error from HTTP.

name

name: string

Name of the error.

stack

stack: string

Stack trace.

type

type: string = "HttpError"

Type of the error, to distinguish it from GithubError.

Generated using TypeDoc