Construct a generic HTTP error. This is a JavaScript Error with additional information specific to HTTP responses.

The error message to include.

The HTTP response status code.

Hierarchy (view full)

Constructors

  • Construct a Matrix error. This is a JavaScript Error with additional information specific to the standard Matrix error response.

    Parameters

    • errorJson: IErrorJson = {}

      The Matrix error JSON returned from the homeserver.

    • OptionalhttpStatus: number

      The numeric HTTP status code given

    • Optionalurl: string
    • Optionalevent: MatrixEvent

    Returns MatrixError

Properties

errcode?: string
event?: MatrixEvent
httpStatus?: number

The numeric HTTP status code given

url?: string