MediaWiki
master
BadRequestError.php
Go to the documentation of this file.
1
<?php
29
class
BadRequestError
extends
ErrorPageError
{
30
35
public
function
report
( $action = self::SEND_OUTPUT ) {
36
global
$wgOut
;
37
$wgOut
->setStatusCode( 400 );
38
parent::report( $action );
39
}
40
}
$wgOut
if(!defined( 'MW_NO_SESSION') &&MW_ENTRY_POINT !=='cli' $wgOut
Definition
Setup.php:568
BadRequestError
An error page that emits an HTTP 400 Bad Request status code.
Definition
BadRequestError.php:29
BadRequestError\report
report( $action=self::SEND_OUTPUT)
Definition
BadRequestError.php:35
ErrorPageError
An error page which can definitely be safely rendered using the OutputPage.
Definition
ErrorPageError.php:33
includes
exception
BadRequestError.php
Generated on Mon Dec 30 2024 14:23:50 for MediaWiki by
1.10.0