Stone.js API
    Preparing search index...

    Class representing an HttpError.

    Mr. Stone evensstone@gmail.com

    Hierarchy

    • RuntimeError
      • HttpError
    Index
    • Create an HttpError.

      Parameters

      • message: string

        The message to log.

      • statusCode: number = 500
      • headers: HeadersType = ...
      • options: ErrorOptions = {}

        The error options.

      Returns HttpError

    cause?: Error
    code?: string
    headers: HeadersType
    metadata?: unknown
    statusCode: number
    statusMessage: string
    • Converts the error to a formatted string representation.

      Parameters

      • Optionalmultiline: boolean

        Determine if output value must be multiline or not.

      Returns string

      A formatted error string.

    • Create a RuntimeError.

      Type Parameters

      • T extends RuntimeError = RuntimeError

      Parameters

      • message: string
      • Optionaloptions: ErrorOptions

        The options to create a RuntimeError.

      Returns T

      A new RuntimeError instance.