def handle_response(response, acceptable_http_status_codes):
    if (response.status_code not in acceptable_http_status_codes):
        error_msg = http_status_to_error_massage.get(response.status_code, 'Failed to perform request')
        return_error(f'{ERROR_PREFIX} {error_msg}')
    try:
        return response.json()
    except json.decoder.JSONDecodeError:
        return_error(f'''Response returned with no data. This might be an issue with Intezer.
Please try again later
Response content:
{response.content}''')
def handle_response(response, acceptable_http_status_codes):
    if (response.status_code not in acceptable_http_status_codes):
        error_msg = http_status_to_error_massage.get(response.status_code, 'Failed to perform request')
        return_error(f'{ERROR_PREFIX} {error_msg}')
    try:
        return response.json()
    except json.decoder.JSONDecodeError:
        return_error(f'Response returned with no data. This might be an issue with Intezer.
Please try again later
Response content:
{response.content}')