MediaWiki  1.23.2
HttpStatus.php
Go to the documentation of this file.
1 <?php
26 class HttpStatus {
27 
37  public static function getMessage( $code ) {
38  static $statusMessage = array(
39  100 => 'Continue',
40  101 => 'Switching Protocols',
41  102 => 'Processing',
42  200 => 'OK',
43  201 => 'Created',
44  202 => 'Accepted',
45  203 => 'Non-Authoritative Information',
46  204 => 'No Content',
47  205 => 'Reset Content',
48  206 => 'Partial Content',
49  207 => 'Multi-Status',
50  300 => 'Multiple Choices',
51  301 => 'Moved Permanently',
52  302 => 'Found',
53  303 => 'See Other',
54  304 => 'Not Modified',
55  305 => 'Use Proxy',
56  307 => 'Temporary Redirect',
57  400 => 'Bad Request',
58  401 => 'Unauthorized',
59  402 => 'Payment Required',
60  403 => 'Forbidden',
61  404 => 'Not Found',
62  405 => 'Method Not Allowed',
63  406 => 'Not Acceptable',
64  407 => 'Proxy Authentication Required',
65  408 => 'Request Timeout',
66  409 => 'Conflict',
67  410 => 'Gone',
68  411 => 'Length Required',
69  412 => 'Precondition Failed',
70  413 => 'Request Entity Too Large',
71  414 => 'Request-URI Too Large',
72  415 => 'Unsupported Media Type',
73  416 => 'Request Range Not Satisfiable',
74  417 => 'Expectation Failed',
75  422 => 'Unprocessable Entity',
76  423 => 'Locked',
77  424 => 'Failed Dependency',
78  428 => 'Precondition Required',
79  429 => 'Too Many Requests',
80  431 => 'Request Header Fields Too Large',
81  500 => 'Internal Server Error',
82  501 => 'Not Implemented',
83  502 => 'Bad Gateway',
84  503 => 'Service Unavailable',
85  504 => 'Gateway Timeout',
86  505 => 'HTTP Version Not Supported',
87  507 => 'Insufficient Storage',
88  511 => 'Network Authentication Required',
89  );
90  return isset( $statusMessage[$code] ) ? $statusMessage[$code] : null;
91  }
92 
93 }
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
HttpStatus
Definition: HttpStatus.php:26
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
HttpStatus\getMessage
static getMessage( $code)
Get the message associated with HTTP response code $code.
Definition: HttpStatus.php:37