NAME

Enum::Declare::Common::HTTP - HTTP status codes, methods, and classification helpers

SYNOPSIS

use Enum::Declare::Common::HTTP;

say OK;              # 200
say NotFound;        # 404
say GET;             # "GET"

if (is_success($code))      { ... }
if (is_client_error($code)) { ... }

my $meta = StatusCode();
say $meta->name(200);    # "OK"

ENUMS

StatusCode :Export

Integer enum of standard HTTP status codes (100-511).

Method :Str :Export

HTTP method strings: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, TRACE.

FUNCTIONS

is_info($code) — true for 1xx
is_success($code) — true for 2xx
is_redirect($code) — true for 3xx
is_client_error($code) — true for 4xx
is_server_error($code) — true for 5xx

AUTHOR

LNATION <email@lnation.org>

LICENSE AND COPYRIGHT

Copyright 2026 LNATION. Artistic License 2.0.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 127:

Non-ASCII character seen before =encoding in '—'. Assuming UTF-8