def METHOD_NAME(http, url, methodDebug):
    req = http.get(url)
    if req.status_code == 200:
        result = json.loads(req.text)
        if 'error' in result:
            raise Exception("Server error - " + methodDebug +
                            " - " + result['error']['message'])
        return result
    else:
        raise Exception("Server error - " + methodDebug +
                        " got status " + req.status)