public static function getStatusLine(int $code, string $protocol = 'HTTP/1.1'): string
    {
        if (\preg_match("'^[1-9]+\\.[0-9]+$'", $protocol)) {
            $protocol = 'HTTP/' . $protocol;
        }
        
        return $protocol . ' ' . $code . \rtrim(' ' . static::getReason($code, ''));
    }
public static function getStatusLine(int $code, string $protocol = 'HTTP/1.1'): string
    {
        if (\preg_match("'^[1-9]+\\.[0-9]+$'", $protocol)) {
            $protocol = 'HTTP/' . $protocol;
        }
        
        return $protocol . ' ' . $code . \rtrim(' ' . static::getReason($code, ''));
    }
public static function getStatusLine ( int $ code , string $ protocol = 'HTTP/1.1' ) : string { if ( \ preg_match ( "'^[1-9]+\\.[0-9]+$'" , $ protocol ) ) { $ protocol = 'HTTP/' . $ protocol ; } return $ protocol . ' ' . $ code . \ rtrim ( ' ' . static :: getReason ( $ code , '' ) ) ; }
Arrange an HTTP response status line using the given data.

@param int $code HTTP response status code.
@param string $protocol HTTP protocol being used.
@return string Generated status line.
Arrange an HTTP response status line using the given data .