Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
removed 449 status code
  • Loading branch information
kraih committed Jun 14, 2012
1 parent a70c9eb commit ff97196
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

3.0 2012-06-12
3.0 2012-06-14
- Code name "Rainbow", this is a major release.
- Added support for new HTTP status code.
- Renamed Mojo::CookieJar to Mojo::UserAgent::CookieJar.
Expand Down
3 changes: 1 addition & 2 deletions lib/Mojo/Message/Response.pm
Expand Up @@ -57,7 +57,6 @@ my %MESSAGES = (
428 => 'Precondition Required', # RFC 6585
429 => 'Too Many Requests', # RFC 6585
431 => 'Request Header Fields Too Large', # RFC 6585
449 => 'Retry With', # Unofficial (Microsoft)
451 => 'Unavailable For Legal Reasons', # Draft
500 => 'Internal Server Error',
501 => 'Not Implemented',
Expand All @@ -70,7 +69,7 @@ my %MESSAGES = (
508 => 'Loop Detected', # RFC 5842
509 => 'Bandwidth Limit Exceeded', # Unofficial
510 => 'Not Extended', # RFC 2774
511 => 'Network Authentication Required', # RFC 6585
511 => 'Network Authentication Required' # RFC 6585
);

sub cookies {
Expand Down
3 changes: 1 addition & 2 deletions t/mojo/response.t
@@ -1,6 +1,6 @@
use Mojo::Base -strict;

use Test::More tests => 355;
use Test::More tests => 354;

# "Quick Smithers. Bring the mind eraser device!
# You mean the revolver, sir?
Expand Down Expand Up @@ -66,7 +66,6 @@ is $res->code(428)->default_message, 'Precondition Required', 'right message';
is $res->code(429)->default_message, 'Too Many Requests', 'right message';
is $res->code(431)->default_message, 'Request Header Fields Too Large',
'right message';
is $res->code(449)->default_message, 'Retry With', 'right message';
is $res->code(451)->default_message, 'Unavailable For Legal Reasons',
'right message';
is $res->code(500)->default_message, 'Internal Server Error', 'right message';
Expand Down

0 comments on commit ff97196

Please sign in to comment.