class_docstr: Confluence handler implementation
class_docstr_tok: ["Confluence","handler","implementation"]
docstr: Check connection to the handler.
  Returns
  -------
  StatusResponse
      Status confirmation
docstr_tok: ["Check","connection","to","the","handler",".","Returns","--","--","--","-","StatusResponse","Status","confirmation"]
code: def check_connection(self) -> StatusResponse:
      """Check connection to the handler.
      Returns
      -------
      StatusResponse
          Status confirmation
      """
      response = StatusResponse(False)
      need_to_close = self.is_connected is False
  
      try:
          self.connect()
          response.success = True
      except Exception as e:
          logger.error(f"Error connecting to Confluence API: {e}!")
          response.error_message = e
  
      self.is_connected = response.success
  
      return response
  
file_path: mindsdb/mindsdb/integrations/handlers/confluence_handler/confluence_handler.py
imports: from typing import Optional, Union
  import requests
  from atlassian import Confluence
  from mindsdb_sql import parse_sql
  from mindsdb.integrations.handlers.confluence_handler.confluence_table import ConfluencePagesTable
  from mindsdb.integrations.libs.api_handler import APIHandler
  from mindsdb.integrations.libs.response import HandlerStatusResponse
  from mindsdb_sql import parse_sql
  from mindsdb.utilities import log
  from atlassian import Confluence
  from typing import Optional
  import requests
label_desc: Use image node_id 3 for calling the ConfluenceHandler obj's underlying member method code with example usage: obj.check_connection() and returns: response