protected function getStatusHeader($protocolVersion, $statusCode, $reasonPhrase)
    {
        if (empty($reasonPhrase)) {
            $reasonPhrase = (new ResponseStatus($statusCode))->getReasonPhrase();
        }
        
        return "HTTP/{$protocolVersion} {$statusCode} {$reasonPhrase}";
    }