import json


def is_nonexistent_file_error(e):
    """ Differentiates between an abnormal connection issue or the file not existing

        Args:
            e: the HTTP exception to analyze

        Returns:
            bool whether the error is a nonexistent file http error
    """
    no_file_msg = 'The File does not exist with the provided parameters.'
    return e.response is not None and (json.loads(e.response.content).get('detail') == no_file_msg)