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

  • Optionalresponse?: unknown

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

  • Optionalstatus?: string | number

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