diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:12:12 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:12:12 -0400 |
commit | c9aa36da061816dee256a979c2ff8d2ee41824d9 (patch) | |
tree | 29f7002b80ee984b488bd047dbbd80b36bf892e9 /includes/libs/HttpStatus.php | |
parent | b4274e0e33eafb5e9ead9d949ebf031a9fb8363b (diff) | |
parent | d1ba966140d7a60cd5ae4e8667ceb27c1a138592 (diff) |
Merge branch 'archwiki'
# Conflicts:
# skins/ArchLinux.php
# skins/ArchLinux/archlogo.gif
Diffstat (limited to 'includes/libs/HttpStatus.php')
-rw-r--r-- | includes/libs/HttpStatus.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/includes/libs/HttpStatus.php b/includes/libs/HttpStatus.php index 4f626b23..809bfdf5 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; } |