X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Flibs%2FHttpStatus.php;h=809bfdf5a8ca531609de19aa7f3a6ed4d29d13cc;hb=2700298740509a3f98a9e2cd81cfbce4f67ed114;hp=4f626b23c59ab24558af4482eb98439c6513097c;hpb=4abdb946e3aff871921c1565cd252ced05782c8f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/HttpStatus.php b/includes/libs/HttpStatus.php index 4f626b23c5..809bfdf5a8 100644 --- a/includes/libs/HttpStatus.php +++ b/includes/libs/HttpStatus.php @@ -28,8 +28,6 @@ class HttpStatus { /** * Get the message associated with HTTP response code $code * - * Replace OutputPage::getStatusMessage( $code ) - * * @param $code Integer: status code * @return String or null: message or null if $code is not in the list of * messages @@ -75,13 +73,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; }