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.

    Default

    'Oops! Something went wrong, please try again'
    

    Prettierignore

  • status: number

    The default status code for the responses.

    Default

    500
    

Generated using TypeDoc