Type alias AppErrorContext

AppErrorContext: {
    response?: unknown;
    status?: string | number;
} & Record<string, unknown>

A dictionary with some context information that can be provided to AppError.

Type declaration

  • Optional response?: unknown

    Extra information that the error handler can pick and include the response.

  • Optional status?: string | number

    A status code or name for the error handler to set in the response.

Generated using TypeDoc