File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ my %StatusCode = (
3636 304 => ' Not Modified' ,
3737 305 => ' Use Proxy' ,
3838 307 => ' Temporary Redirect' ,
39+ 308 => ' Permanent Redirect' , # RFC 7238
3940 400 => ' Bad Request' ,
4041 401 => ' Unauthorized' ,
4142 402 => ' Payment Required' ,
@@ -165,6 +166,7 @@ tag to import them all.
165166 HTTP_NOT_MODIFIED (304)
166167 HTTP_USE_PROXY (305)
167168 HTTP_TEMPORARY_REDIRECT (307)
169+ HTTP_PERMANENT_REDIRECT (308)
168170
169171 HTTP_BAD_REQUEST (400)
170172 HTTP_UNAUTHORIZED (401)
Original file line number Diff line number Diff line change 11# !perl -w
22
33use Test;
4- plan tests => 9 ;
4+ plan tests => 10 ;
55
66use HTTP::Status qw( :constants :is status_message) ;
77
@@ -12,6 +12,7 @@ ok(is_success(HTTP_ACCEPTED));
1212ok(is_error(HTTP_BAD_REQUEST));
1313ok(is_client_error(HTTP_I_AM_A_TEAPOT));
1414ok(is_redirect(HTTP_MOVED_PERMANENTLY));
15+ ok(is_redirect(HTTP_PERMANENT_REDIRECT));
1516
1617ok(!is_success(HTTP_NOT_FOUND));
1718
You can’t perform that action at this time.
0 commit comments