From adc2a2c87266d1cf7964a9882f130a702b022ea0 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Wed, 5 Mar 2014 22:01:16 +0000 Subject: [PATCH] Update the list of HTTP status code descriptions. Fixes #16914. Props sirzooro and hakre for the original patches. Built from https://develop.svn.wordpress.org/trunk@27422 git-svn-id: http://core.svn.wordpress.org/trunk@27269 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 0e34a5e5d4..3ac86a3e19 100644 --- a/wp-includes/functions.php +++ b/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', ); }