Merge "HttpStatus: add RFC 6585 status codes"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 28 Mar 2014 18:44:17 +0000 (18:44 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 28 Mar 2014 18:44:17 +0000 (18:44 +0000)
includes/libs/HttpStatus.php

index 4f626b2..d72ffca 100644 (file)
@@ -75,13 +75,17 @@ class HttpStatus {
                        422 => 'Unprocessable Entity',
                        423 => 'Locked',
                        424 => 'Failed Dependency',
+                       428 => 'Precondition Required',
+                       429 => 'Too Many Requests',
+                       431 => 'Request Header Fields Too Large',
                        500 => 'Internal Server Error',
                        501 => 'Not Implemented',
                        502 => 'Bad Gateway',
                        503 => 'Service Unavailable',
                        504 => 'Gateway Timeout',
                        505 => 'HTTP Version Not Supported',
-                       507 => 'Insufficient Storage'
+                       507 => 'Insufficient Storage',
+                       511 => 'Network Authentication Required',
                );
                return isset( $statusMessage[$code] ) ? $statusMessage[$code] : null;
        }