@staticmethod
def _validate_response(response):
    """
        Helper function to validate the response request produced from _make_request().
           :param response: The requests response object.
           :rtype: A dictionary containing the resp_code and JSON response.
        """
    if response.status_code == 200:
        json_resp = response.json()
        return dict(status_code=response.status_code, json_resp=json_resp)
    else:
        return dict(status_code=response.status_code, error=response.text,
            resp=response.content)
