def handle_response(self, response_object):
        response = response_object
        if (400 <= response.status <=499) or (response.status == 500):
            msg = "Received HTTP Code %s - %s" % (
                   response.status,
                   httplib.responses[int(response.status)])
            raise exc.dRestRequestError(msg, response=response)
        return response
A simple wrapper to handle the response.  By default raises
dataset/ETHPy150Open datafolklabs/drest/drest/request.py/RequestHandler.handle_response