def get_avi_resp_code(respCode):
    """
    This function used for getting appropriate response code for avi.
    :param respCode: response code
    :return: returns list of unique responses.
    """
    avi_resp_codes = []
    codes = respCode.split(' ')
    for code in codes:
        if code < 200:
            avi_resp_codes.append({'code': 'HTTP_1XX'})
        elif code < 300:
            avi_resp_codes.append({'code': 'HTTP_2XX'})
        elif code < 400:
            avi_resp_codes.append({'code': 'HTTP_3XX'})
        elif code < 500:
            avi_resp_codes.append({'code': 'HTTP_4XX'})
        elif code < 600:
            avi_resp_codes.append({'code': 'HTTP_5XX'})
    return list(set(avi_resp_codes))
