Adding check for redirect response code

and performing the actual redirect if need... (see [AGPUSH-240](https://issues.jboss.org/browse/AGPUSH-240) for more)