added throws exception to GenericHttpClient for master branch