MediaWiki
1.30.0
|
Static Public Member Functions | |
static | getMessage ( $code) |
Get the message associated with an HTTP response status code. More... | |
static | header ( $code) |
Output an HTTP status code header. More... | |
Definition at line 26 of file HttpStatus.php.
|
static |
Get the message associated with an HTTP response status code.
int | $code | Status code |
Definition at line 34 of file HttpStatus.php.
References $code.
Referenced by ApiFormatBase\closePrinter(), SpecialPageExecutor\executeSpecialPage(), HttpError\getHTML(), and header().
|
static |
Output an HTTP status code header.
int | $code | Status code |
Definition at line 96 of file HttpStatus.php.
References $code, getMessage(), and MediaWiki\HeaderCallback\warnIfHeadersSent().
Referenced by SpecialRunJobs\execute(), HttpError\report(), HTTPFileStreamer\send404Message(), AjaxResponse\sendHeaders(), WebResponse\statusHeader(), MWException\statusHeader(), MWExceptionRenderer\statusHeader(), HTTPFileStreamer\stream(), wfStreamThumb(), and wfThumbError().