def initiate_response_obj(self, query_params, ioc_type):
        """Initiate the response object.

        Create URL based on the endpoint and IOC type,
        then sends a request to get the Infoblox stream response object using the given query parameters.

        Args:
            query_params: A dictionary containing query parameters.
            ioc_type: The type of IOC (Indicator of Compromise).

        Returns:
            The response object obtained from Infoblox.
        """
        __method_name = inspect.currentframe().f_code.co_name
        try:
            endpoint = consts.ENDPOINTS["active_threats_by_type"]
            url = self.url_builder(endpoint, ioc_type)
            applogger.info(
                self.log_format.format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    self.azure_function_name,
                    "Url = {}".format(url),
                )
            )
            response_obj = self.get_infoblox_stream_response_obj(url, query_parameters=query_params)
            return response_obj
        except InfobloxException:
            raise InfobloxException()
        except KeyError as key_error:
            applogger.error(
                self.log_format.format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    self.azure_function_name,
                    "Key error : Error-{}".format(key_error),
                )
            )
            raise InfobloxException()
        except Exception as err:
            applogger.error(
                self.log_format.format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    self.azure_function_name,
                    consts.UNEXPECTED_ERROR_MSG.format(err),
                )
            )
            raise InfobloxException()
Initiate the response object.

        Create URL based on the endpoint and IOC type,
        then sends a request to get the Infoblox stream response object using the given query parameters.

        Args:
            query_params: A dictionary containing query parameters.
            ioc_type: The type of IOC (Indicator of Compromise).

        Returns:
            The response object obtained from Infoblox.
        
Solutions/Infoblox/Data Connectors/InfobloxCloudDataConnector/InfobloxHistoricalToAzureStorage/infoblox_to_azure_storage.py