def handle_response(response):
    """
    Handle the DigiCert API response and any errors it might have experienced.
    :param response:
    :return:
    """
    if response.status_code > 399:
        raise Exception("DigiCert rejected request with the error:" + response.json()["errors"][0]["message"])

    return response.json()

    Handle the DigiCert API response and any errors it might have experienced.
    :param response:
    :return:
    
lemur/plugins/lemur_digicert/plugin.py