@classmethod
def is_error(cls, api_response):
    """
        Check if the API response is or contain an error.

        :param dict api_response: The API response.

        :rtype: bool
        """
    if api_response and isinstance(api_response, dict):
        if '@type' in api_response and api_response['@type'] == 'error':
            return True
    return False
