How to handle 302 in angular 2
<p>I am getting error with status 302
But while trying to log error in catch I am getting 200</p>

<pre><code>post(url, data, successCallBack, errCallback) {
        return this.http.post(apiDomain + url, JSON.stringify(data), {
            headers: this.headers
        }).catch(this.handleError).subscribe(
            (res) =&gt; {
                successCallBack(res.json());
            },
            (err) =&gt; {
                errCallback(err);
            }
            );
    }

private handleError(error: any) {
    let errMsg = (error.message) ? error.message :
        error.status;
    console.log(error.status); // log is 200
    console.log(error)
    console.error(errMsg);
    return Observable.throw(errMsg);
}
</code></pre>

<p>Requirement I want to send another post call on redirect URL redirects.
How to get Redirect URL.</p>

<p>Need help.</p>