MediaWiki
master
BadRequestError.php
Go to the documentation of this file.
1
<?php
21
namespace
MediaWiki\Exception
;
22
31
class
BadRequestError
extends
ErrorPageError
{
32
37
public
function
report
( $action = self::SEND_OUTPUT ) {
38
global
$wgOut
;
39
$wgOut
->setStatusCode( 400 );
40
parent::report( $action );
41
}
42
}
43
45
class_alias( BadRequestError::class,
'BadRequestError'
);
$wgOut
if(!defined( 'MW_NO_SESSION') &&MW_ENTRY_POINT !=='cli' $wgOut
Definition
Setup.php:559
MediaWiki\Exception\BadRequestError
An error page that emits an HTTP 400 Bad Request status code.
Definition
BadRequestError.php:31
MediaWiki\Exception\BadRequestError\report
report( $action=self::SEND_OUTPUT)
Definition
BadRequestError.php:37
MediaWiki\Exception\ErrorPageError
An error page which can definitely be safely rendered using the OutputPage.
Definition
ErrorPageError.php:35
MediaWiki\Exception
Definition
BadRequestError.php:21
includes
exception
BadRequestError.php
Generated on Wed Jun 18 2025 04:23:52 for MediaWiki by
1.10.0