Update the list of HTTP status code descriptions. Fixes #16914. Props sirzooro and hakre for the original patches.

git-svn-id: https://develop.svn.wordpress.org/trunk@27422 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2014-03-05 22:00:29 +00:00
parent 7a6744a93c
commit f00a18712f
1 changed files with 6 additions and 1 deletions

View File

@ -864,10 +864,14 @@ function get_status_header_desc( $code ) {
415 => 'Unsupported Media Type', 415 => 'Unsupported Media Type',
416 => 'Requested Range Not Satisfiable', 416 => 'Requested Range Not Satisfiable',
417 => 'Expectation Failed', 417 => 'Expectation Failed',
418 => 'I\'m a teapot',
422 => 'Unprocessable Entity', 422 => 'Unprocessable Entity',
423 => 'Locked', 423 => 'Locked',
424 => 'Failed Dependency', 424 => 'Failed Dependency',
426 => 'Upgrade Required', 426 => 'Upgrade Required',
428 => 'Precondition Required',
429 => 'Too Many Requests',
431 => 'Request Header Fields Too Large',
500 => 'Internal Server Error', 500 => 'Internal Server Error',
501 => 'Not Implemented', 501 => 'Not Implemented',
@ -877,7 +881,8 @@ function get_status_header_desc( $code ) {
505 => 'HTTP Version Not Supported', 505 => 'HTTP Version Not Supported',
506 => 'Variant Also Negotiates', 506 => 'Variant Also Negotiates',
507 => 'Insufficient Storage', 507 => 'Insufficient Storage',
510 => 'Not Extended' 510 => 'Not Extended',
511 => 'Network Authentication Required',
); );
} }