MediaWiki  1.23.6
HttpStatus Class Reference

Static Public Member Functions

static getMessage ( $code)
 Get the message associated with HTTP response code $code. More...
 

Detailed Description

Todo:
document

Definition at line 26 of file HttpStatus.php.

Member Function Documentation

◆ getMessage()

static HttpStatus::getMessage (   $code)
static

Get the message associated with HTTP response code $code.

Replace OutputPage::getStatusMessage( $code )

Parameters
$codeInteger: status code
Returns
String or null: message or null if $code is not in the list of messages

Definition at line 37 of file HttpStatus.php.

References array().

Referenced by HttpError\getHTML(), OutputPage\getStatusMessage(), ApiMain\handleCORS(), OutputPage\output(), HttpError\report(), and wfStreamThumb().


The documentation for this class was generated from the following file: