NAME

Net::API::REST::Status - Apache2 Status Codes

SYNOPSIS

say $Net::API::REST::Status::CODES->{429};
# returns Apache constant Apache2::Const::HTTP_TOO_MANY_REQUESTS

say $Net::API::REST::Status::HTTP_CODES->{fr_FR}->{429} # Trop de requête
# In Japanese: リクエスト過大で拒否した
say $Net::API::REST::Status::HTTP_CODES->{ja_JP}->{429}

But maybe more simply:

my $status = Net::API::REST::Status->new;
say $status->status_message( 429 => 'ja_JP' );
# Or without the language code parameter, it will default to en_GB
say $status->status_message( 429 );

# Is success
say $status->is_info( 102 ); # true
say $status->is_success( 200 ); # true
say $status->is_redirect( 302 ); # true
say $status->is_error( 404 ); # true
say $status->is_client_error( 403 ); # true
say $status->is_server_error( 501 ); # true

VERSION

v1.0.0

DESCRIPTION

As of version 1.0.0, this module inherits all of its methods from Apache2::API::Status. Please check its documentation directly.

SEE ALSO

Apache distribution and file httpd-2.x.x/include/httpd.h

IANA HTTP codes list

COPYRIGHT & LICENSE

Copyright (c) 2019-2023 DEGUEST Pte. Ltd.

You can use, copy, modify and redistribute this package and associated files under the same terms as Perl itself.