MediaWiki master
BadRequestError.php
Go to the documentation of this file.
1<?php
22
32
37 public function report( $action = self::SEND_OUTPUT ) {
38 global $wgOut;
39 $wgOut->setStatusCode( 400 );
40 parent::report( $action );
41 }
42}
43
45class_alias( BadRequestError::class, 'BadRequestError' );
if(!defined( 'MW_NO_SESSION') &&MW_ENTRY_POINT !=='cli' $wgOut
Definition Setup.php:559
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.