public function line($httpVersion, string $sapi = PHP_SAPI): string
    {
        if ('cgi' === $sapi) {
            return 'Status: ' . $this->code . ' ' . $this->reasonPhrase;
        }

        return $httpVersion . ' ' . $this->code . ' ' . $this->reasonPhrase;
    }