HttpUtilImpl fixes to retrieve the body even after a failure

Workaround to retrieve the contents of the body even when the HTTP status is other than 200. Needed to log and understand authentication issues when retrieving the oAuth token from the provider.