Type Alias ErrorHandlerResponseOptions

ErrorHandlerResponseOptions: {
    message: string;
    status: number;
}

The options for the responses the middleware will create.

Type declaration

  • message: string

    The message to show in case showErrors is set to false.

    'Oops! Something went wrong, please try again'
    
  • status: number

    The default status code for the responses.

    500