protected function sendHttpVersionHeader(string $protocolVersion, int $statusCode,
        ?string $reasonPhrase = null):void
    {
        header(
            sprintf("HTTP/%s %d %s",
                $protocolVersion,
                $statusCode,
                $reasonPhrase ?? HttpReasonPhraseLookup::getReasonPhrase($statusCode)),
            true
        );
    }