Net::API::REST::Status - Apache2 Status Codes
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
v1.0.0
As of version 1.0.0, this module inherits all of its methods from Apache2::API::Status. Please check its documentation directly.
1.0.0
Apache distribution and file httpd-2.x.x/include/httpd.h
httpd-2.x.x/include/httpd.h
IANA HTTP codes list
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.
To install Net::API::REST, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::API::REST
CPAN shell
perl -MCPAN -e shell install Net::API::REST
For more information on module installation, please visit the detailed CPAN module installation guide.