def get_avi_resp_code(self, respCode):
    '\n        This function used for getting appropriate response code for avi.\n        :param respCode: response code\n        :return: returns list of unique responses.\n        '
    avi_resp_codes = []
    codes = []
    for res_code in respCode.split(' '):
        if ('-' in res_code):
            codes.extend(res_code.split('-'))
        else:
            codes.append(res_code)
    for code in codes:
        if (code and code.strip().isdigit()):
            code = int(code.strip())
            if (code < 200):
                avi_resp_codes.append('HTTP_1XX')
            elif (code < 300):
                avi_resp_codes.append('HTTP_2XX')
            elif (code < 400):
                avi_resp_codes.append('HTTP_3XX')
            elif (code < 500):
                avi_resp_codes.append('HTTP_4XX')
            elif (code < 600):
                avi_resp_codes.append('HTTP_5XX')
    avi_resp_codes = list(set(avi_resp_codes))
    if (not avi_resp_codes):
        avi_resp_codes = ['HTTP_ANY']
    return avi_resp_codes
This function used for getting appropriate response code for avi.
:param respCode: response code
:return: returns list of unique responses.
def get_avi_resp_code(self, respCode):
    '\n        This function used for getting appropriate response code for avi.\n        :param respCode: response code\n        :return: returns list of unique responses.\n        '
    avi_resp_codes = []
    codes = []
    for res_code in respCode.split(' '):
        if ('-' in res_code):
            codes.extend(res_code.split('-'))
        else:
            codes.append(res_code)
    for code in codes:
        if (code and code.strip().isdigit()):
            code = int(code.strip())
            if (code < 200):
                avi_resp_codes.append('HTTP_1XX')
            elif (code < 300):
                avi_resp_codes.append('HTTP_2XX')
            elif (code < 400):
                avi_resp_codes.append('HTTP_3XX')
            elif (code < 500):
                avi_resp_codes.append('HTTP_4XX')
            elif (code < 600):
                avi_resp_codes.append('HTTP_5XX')
    avi_resp_codes = list(set(avi_resp_codes))
    if (not avi_resp_codes):
        avi_resp_codes = ['HTTP_ANY']
    return avi_resp_codes