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