From f00a18712fc897aeaba7e94d01f85c25893b2bc1 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Wed, 5 Mar 2014 22:00:29 +0000 Subject: [PATCH] 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 --- src/wp-includes/functions.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 0e34a5e5d4..3ac86a3e19 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -864,10 +864,14 @@ function get_status_header_desc( $code ) { 415 => 'Unsupported Media Type', 416 => 'Requested Range Not Satisfiable', 417 => 'Expectation Failed', + 418 => 'I\'m a teapot', 422 => 'Unprocessable Entity', 423 => 'Locked', 424 => 'Failed Dependency', 426 => 'Upgrade Required', + 428 => 'Precondition Required', + 429 => 'Too Many Requests', + 431 => 'Request Header Fields Too Large', 500 => 'Internal Server Error', 501 => 'Not Implemented', @@ -877,7 +881,8 @@ function get_status_header_desc( $code ) { 505 => 'HTTP Version Not Supported', 506 => 'Variant Also Negotiates', 507 => 'Insufficient Storage', - 510 => 'Not Extended' + 510 => 'Not Extended', + 511 => 'Network Authentication Required', ); }