Skip to content

Commit 4846a23

Browse files
Theo van Hoeseloalders
authored andcommitted
create space for new function
1 parent 904f40c commit 4846a23

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

lib/HTTP/Status.pm

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,12 @@ our %EXPORT_TAGS = (
105105

106106
sub status_message ($) { $StatusCode{$_[0]}; }
107107

108-
sub is_info ($) { $_[0] && $_[0] >= 100 && $_[0] < 200; }
109-
sub is_success ($) { $_[0] && $_[0] >= 200 && $_[0] < 300; }
110-
sub is_redirect ($) { $_[0] && $_[0] >= 300 && $_[0] < 400; }
111-
sub is_error ($) { $_[0] && $_[0] >= 400 && $_[0] < 600; }
112-
sub is_client_error ($) { $_[0] && $_[0] >= 400 && $_[0] < 500; }
113-
sub is_server_error ($) { $_[0] && $_[0] >= 500 && $_[0] < 600; }
114-
108+
sub is_info ($) { $_[0] && $_[0] >= 100 && $_[0] < 200; }
109+
sub is_success ($) { $_[0] && $_[0] >= 200 && $_[0] < 300; }
110+
sub is_redirect ($) { $_[0] && $_[0] >= 300 && $_[0] < 400; }
111+
sub is_error ($) { $_[0] && $_[0] >= 400 && $_[0] < 600; }
112+
sub is_client_error ($) { $_[0] && $_[0] >= 400 && $_[0] < 500; }
113+
sub is_server_error ($) { $_[0] && $_[0] >= 500 && $_[0] < 600; }
115114
1;
116115

117116

0 commit comments

Comments
 (0)