Apache2-Controller
view release on metacpan or search on metacpan
lib/Apache2/Controller/Refcard.pm view on Meta::CPAN
303 HTTP_SEE_OTHER See Other
304 HTTP_NOT_MODIFIED Not Modified
305 HTTP_USE_PROXY Use Proxy
307 HTTP_TEMPORARY_REDIRECT Temporary Redirect
400 HTTP_BAD_REQUEST Bad Request
401 AUTH_REQUIRED Unauthorized
401 HTTP_UNAUTHORIZED Unauthorized
402 HTTP_PAYMENT_REQUIRED Payment Required
403 FORBIDDEN Forbidden
403 HTTP_FORBIDDEN Forbidden
404 HTTP_NOT_FOUND Not Found
404 NOT_FOUND Not Found
405 HTTP_METHOD_NOT_ALLOWED Method Not Allowed
406 HTTP_NOT_ACCEPTABLE Not Acceptable
407 HTTP_PROXY_AUTHENTICATION_REQUIRED Proxy Authentication Required
408 HTTP_REQUEST_TIME_OUT Request Timeout
409 HTTP_CONFLICT Conflict
410 HTTP_GONE Gone
411 HTTP_LENGTH_REQUIRED Length Required
412 HTTP_PRECONDITION_FAILED Precondition Failed
413 HTTP_REQUEST_ENTITY_TOO_LARGE Request Entity Too Large
414 HTTP_REQUEST_URI_TOO_LARGE Request-URI Too Large
lib/Apache2/Controller/Render/Template.pm view on Meta::CPAN
set in the L<Apache2::Controller::X> exception).
If you have a template $template_dir/error/$status.html,
where $status is the numeric http status code,
then it will use that template.
For example:
203 HTTP_NON_AUTHORITATIVE => error/203.html
400 HTTP_BAD_REQUEST => error/400.html
404 NOT_FOUND => error/404.html
500 HTTP_INTERNAL_SERVER_ERROR => error/500.html
For example, C<$template_dir/error/400.html> or
C<$template_dir/error/403.html>.
Otherwise it will look for $template_dir/error/default.html and
try to use that, otherwise it will give up.
error() remembers across requests whether you do or don't have
error templates for certain messages in the appropriate template directory,
( run in 1.059 second using v1.01-cache-2.11-cpan-39bf76dae61 )