code: def proc_response(self, resp):
          
  
          # Raise exceptions for error responses
          if resp.status >= 400:
              e = exc.exception_map.get(resp.status, exc.HTTPException)
              self._debug("  Response was a %d fault, raising %s",
                          resp.status, e.__name__)
              raise e(resp)
docs: Process response hook.
  
          Process non-redirect responses received by the send() method.
          May augment the response.  The default implementation causes
          an exception to be raised if the response status code is >=
          400.