MediaWiki  1.34.0
HttpStatus Class Reference

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...
 

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 an HTTP response status code.

Parameters
int$codeStatus code
Returns
string|null Message, or null if $code is not known

Definition at line 34 of file HttpStatus.php.

Referenced by ApiFormatBase\closePrinter(), MediaWiki\Rest\ResponseFactory\createHttpError(), HttpError\getHTML(), header(), and MediaWiki\Rest\Response\setStatus().

◆ header()


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