MediaWiki
master
BadRequestError.php
Go to the documentation of this file.
1
<?php
7
namespace
MediaWiki\Exception
;
8
17
class
BadRequestError
extends
ErrorPageError
{
18
23
public
function
report
( $action = self::SEND_OUTPUT ) {
24
global
$wgOut
;
25
$wgOut
->setStatusCode( 400 );
26
parent::report( $action );
27
}
28
}
29
31
class_alias( BadRequestError::class,
'BadRequestError'
);
$wgOut
if(MW_ENTRY_POINT==='index') if(!defined( 'MW_NO_SESSION') &&MW_ENTRY_POINT !=='cli' $wgOut
Definition
Setup.php:551
MediaWiki\Exception\BadRequestError
An error page that emits an HTTP 400 Bad Request status code.
Definition
BadRequestError.php:17
MediaWiki\Exception\BadRequestError\report
report( $action=self::SEND_OUTPUT)
Definition
BadRequestError.php:23
MediaWiki\Exception\ErrorPageError
An error page which can definitely be safely rendered using the OutputPage.
Definition
ErrorPageError.php:21
MediaWiki\Exception
Definition
BadRequestError.php:7
includes
Exception
BadRequestError.php
Generated on Fri Jan 16 2026 23:24:59 for MediaWiki by
1.10.0