From: jenkins-bot Date: Fri, 28 Mar 2014 18:44:17 +0000 (+0000) Subject: Merge "HttpStatus: add RFC 6585 status codes" X-Git-Tag: 1.31.0-rc.0~16449 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=03f222280f572a23baa6ed14cfaf48c69b6fbd32;hp=cb79917e435f1dee616bc71d974785da8fc4b26a;p=lhc%2Fweb%2Fwiklou.git Merge "HttpStatus: add RFC 6585 status codes" --- diff --git a/includes/libs/HttpStatus.php b/includes/libs/HttpStatus.php index 4f626b23c5..d72ffcabb0 100644 --- a/includes/libs/HttpStatus.php +++ b/includes/libs/HttpStatus.php @@ -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; }