Class HttpError

A error corresponding to the given HTTP status code.

HTTP request processing handlers may raise this error. The error handler would render corresponding error page then.

See

HttpConfig.errorHandler

Hierarchy

  • Error
    • HttpError

Implements

  • Loggable

Constructors

Properties

prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number
cause?: unknown
message: string
name: string
stack?: string

Accessors

  • get details(): undefined | string
  • Error details.

    This will be displayed on error page in addition to error code.

    Returns undefined | string

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

  • Performs additional message processing before it is logged.

    At output or default logging stage replaces this error with error message, details, and reason. Does nothing at other logging stages.

    Parameters

    • __namedParameters: DueLog

    Returns void | unknown[]

    Either new loggable value representation, or nothing outside the output logging stage.

Generated using TypeDoc