NAME

HTTP::AppServer::Plugin::CustomError - Plugin for HTTP::AppServer that defines custom error pages for all HTTP error codes.

SYNOPSIS

  use HTTP::AppServer;
  my $server = HTTP::AppServer->new();
  $server->plugin('CustomError');

DESCRIPTION

Plugin for HTTP::AppServer that defines custom error pages for all HTTP error codes. It can be used to easily create HTML pages for HTTP error codes.

Plugin configuration

Not possible for now.

Installed URL handlers

None.

Installed server properties

None.

Installed server methods

errorpage()

This method prints a HTML formatted page to STDOUT that presents a certain HTTP error/status code to the user.

  $server->errorpage(500);

SEE ALSO

HTTP::AppServer, HTTP::AppServer::Plugin

AUTHOR

Tom Kirchner, <tom@tkirchner.com>

COPYRIGHT AND LICENSE

Copyright (C) 2010 by Tom Kirchner

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.