The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

CatalystX::Controller::Sugar::ActionPack::Error - Action for error pages

DESCRIPTION

Used to server custom error pages, which the webapp dispatch to.

VARIABLES

%ERROR_STATUS

This hash holds a mapping between the error template and the response status. See the source code for a sample of default templates.

ACTIONS

Endpoint /error/*

 go '/error' => [$template, $message];

Show error message, and set HTTP response status. Supported status: See %ERROR_STATUS.

Affected stash variables:

 {
   template => "error/$template.tt",
   title => "error - $status_code",
   error_message => $message,
 }

LICENSE

AUTHOR

See CatalystX::Controller::Sugar::ActionPack.