Redirected previous method that returned a String to a new method that returns HttpResponse. This does not have any effect on the rest of the code but allows you to read http headers of a response (e.g. sometimes you might want to know the location header for a redirect).