Syntax-K

Know-How für Ihr Projekt

Perl Documentation

NAME

AxKit2::Constants - Constants for plugins to use

HOOK CONSTANTS

See AxKit2::Plugin for hook specific information on applicable constants.

Constants available:

You can, in most hooks, return any of the HTTP response codes below.

HTTP RESPONSE CONSTANTS

OK                     => 200,
NO_CONTENT             => 204,
PARTIAL_CONTENT        => 206,
REDIRECT               => 302,
NOT_MODIFIED           => 304,
BAD_REQUEST            => 400,
UNAUTHORIZED           => 401,
FORBIDDEN              => 403,
NOT_FOUND              => 404,
SERVER_ERROR           => 500,
NOT_IMPLEMENTED        => 501,
SERVICE_UNAVAILABLE    => 503,

LOGGING CONSTANTS

The following log level constants are also available:

LOGDEBUG   => 7,
LOGINFO    => 6,
LOGNOTICE  => 5,
LOGWARN    => 4,
LOGERROR   => 3,
LOGCRIT    => 2,
LOGALERT   => 1,
LOGEMERG   => 0,