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,
}