diff --git a/pypuppetdb/api/__init__.py b/pypuppetdb/api/__init__.py
index <HASH>..<HASH> 100644
--- a/pypuppetdb/api/__init__.py
+++ b/pypuppetdb/api/__init__.py
@@ -290,6 +290,11 @@ class BaseAPI(object):
                                                      self.host, self.port,
                                                      self.protocol.upper()))
             raise
+        except requests.exceptions.HTTPError as err:
+            log.error("{0} {1}:{2} over {3}.".format(err.response.text,
+                                                     self.host, self.port,
+                                                     self.protocol.upper()))
+            raise
 
     # Method stubs
Except HTTPError for puppetdb  error feedback

Added a large net for  requests.exceptions.HTTPError exceptions to catch
errors raised by the puppetdb api server.

It will log the raise_for_status() exceptions into the log buffer for
debugging errors.