public function isRedirect()
    {
        $codes = [
            static::STATUS_MOVED_PERMANENTLY,
            static::STATUS_FOUND,
            static::STATUS_SEE_OTHER,
            static::STATUS_TEMPORARY_REDIRECT,
        ];

        return (
            in_array($this->code, $codes) &&
            $this->getHeaderLine('Location')
        );
    }
public function isRedirect()
    {
        $codes = [
            static::STATUS_MOVED_PERMANENTLY,
            static::STATUS_FOUND,
            static::STATUS_SEE_OTHER,
            static::STATUS_TEMPORARY_REDIRECT,
        ];

        return (
            in_array($this->code, $codes) &&
            $this->getHeaderLine('Location')
        );
    }
public function isRedirect ( ) { $ codes = [ static :: STATUS_MOVED_PERMANENTLY , static :: STATUS_FOUND , static :: STATUS_SEE_OTHER , static :: STATUS_TEMPORARY_REDIRECT , ] ; return ( in_array ( $ this -> code , $ codes ) && $ this -> getHeaderLine ( 'Location' ) ) ; }
Check if the response had a redirect status code.

@return bool
Check if the response had a redirect status code .