src/AbstractSapiEmitter.php
/**
     * Emit the status line.
     *
     * Emits the status line using the protocol version and status code from
     * the response; if a reason phrase is availble, it, too, is emitted.
     *
     * It's important to mention that, in order to prevent PHP from changing
     * the status code of the emitted response, this method should be called
     * after `sendBody()`
     *
     * @param \Psr\Http\Message\ResponseInterface $response
     *
     * @return void
     */
Emit the status line.
Emits the status line using the protocol version and status code from
the response; if a reason phrase is availble, it, too, is emitted.

It's important to mention that, in order to prevent PHP from changing
the status code of the emitted response, this method should be called
after `sendBody()`



@return void
Emit the status line . Emits the status line using the protocol version and status code from the response ; if a reason phrase is availble it too is emitted . It ' s important to mention that in order to prevent PHP from changing the status code of the emitted response this method should be called after ` sendBody () ` @return void
protected function emitStatusLine(ResponseInterface $response): void
    {
        $statusCode = $response->getStatusCode();
        header(
            \vsprintf(
                'HTTP/%s %d%s',
                [
                    $response->getProtocolVersion(),
                    $statusCode,
                    \rtrim(' ' . $response->getReasonPhrase()),
                ]
            ),
            true,
            $statusCode
        );
    }
protected function emitStatusLine ( ResponseInterface $ response ) : void { $ statusCode = $ response -> getStatusCode ( ) ; header ( \ vsprintf ( 'HTTP/%s %d%s' , [ $ response -> getProtocolVersion ( ) , $ statusCode , \ rtrim ( ' ' . $ response -> getReasonPhrase ( ) ) , ] ) , true , $ statusCode ) ; }
Emit the status line.
Emit the status line .