X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2FHttpStatus.php;h=d72ffcabb0e59abf5eecf7529854cf5d26649600;hb=3b1b2b0c33714e5768421ea4a87a97aa2ff8717a;hp=78d8180308714bd38632b16f1a23df872ac9cb04;hpb=23d63db90ca2ca9491aade0408af235e637e3c33;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/HttpStatus.php b/includes/libs/HttpStatus.php index 78d8180308..d72ffcabb0 100644 --- a/includes/libs/HttpStatus.php +++ b/includes/libs/HttpStatus.php @@ -26,7 +26,7 @@ class HttpStatus { /** - * Get the message associed with the HTTP response code $code + * Get the message associated with HTTP response code $code * * Replace OutputPage::getStatusMessage( $code ) * @@ -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; }