@staticmethod
def get_text_status(json):
    """
        Extracts textual status from the response - statusdetail, if present.
        Otherwise extracts status field.

        :param json:
        :return:
        """
    if json is None:
        return None
    elif 'statusdetail' in json:
        return json['statusdetail']
    elif 'status' in json:
        return json['status']
    else:
        return None
