Previsouly, HttpError would set a Status header with the desired code,
but would not change the actual HTTP/1.1 header to include that code.
Change-Id: I2f68b1fa410b3619c5be3e82b64f99df97b9415a
public function report() {
$httpMessage = HttpStatus::getMessage( $this->httpCode );
public function report() {
$httpMessage = HttpStatus::getMessage( $this->httpCode );
- header( "Status: {$this->httpCode} {$httpMessage}" );
+ header( "Status: {$this->httpCode} {$httpMessage}", true, $this->httpCode );
header( 'Content-type: text/html; charset=utf-8' );
if ( $this->header === null ) {
header( 'Content-type: text/html; charset=utf-8' );
if ( $this->header === null ) {