import requests
import json


def is_object_already_exists_exception(ex: requests.exceptions.HTTPError) -> bool:
    """
    Check exception details to find if this is a 'Already exists' exceptions or not
    :param ex: HTTPError object
    :return: True if exception is about already existing object or false otherwise
    """
    exc_details = json.loads(ex.response.text)
    if exc_details.get('error').get('details') and exc_details['error']['details'][0]['code'] == 'ObjectConflict':
        return True
    return False