Is the response a redirect of some form?
@api
string $location:
Boolean
public function isRedirect($location = null) {
return in_array($this->statusCode, array(
201,
301,
302,
303,
307,
308,
)) && (null === $location ?: $location == $this->headers
->get('Location'));
}