Skip to content

Commit

Permalink
bring back 451 status code
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 18, 2015
1 parent 1a635d6 commit 86597e3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Changes
@@ -1,5 +1,6 @@

6.32 2015-11-17
6.32 2015-11-18
- Added support for new HTTP status code.
- Improved Mojo::DOM::CSS performance slightly. (jamadam)
- Fixed a few case-sensitivity and An+B notation issues in Mojo::DOM::CSS.
(jamadam)
Expand Down
1 change: 1 addition & 0 deletions lib/Mojo/Message/Response.pm
Expand Up @@ -56,6 +56,7 @@ my %MESSAGES = (
428 => 'Precondition Required', # RFC 6585
429 => 'Too Many Requests', # RFC 6585
431 => 'Request Header Fields Too Large', # RFC 6585
451 => 'Unavailable For Legal Reasons', # Draft
500 => 'Internal Server Error',
501 => 'Not Implemented',
502 => 'Bad Gateway',
Expand Down
2 changes: 2 additions & 0 deletions t/mojo/response.t
Expand Up @@ -64,6 +64,8 @@ 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(451)->default_message, 'Unavailable For Legal Reasons',
'right message';
is $res->code(500)->default_message, 'Internal Server Error', 'right message';
is $res->code(501)->default_message, 'Not Implemented', 'right message';
is $res->code(502)->default_message, 'Bad Gateway', 'right message';
Expand Down

0 comments on commit 86597e3

Please sign in to comment.