in bugbounty_gpt/handlers/openai_handler.py [0:0]
def _handle_response_error(error):
"""
Handles errors that occurred during the OpenAI request.
:param error: The error that occurred.
:return: A tuple containing the default category and an error message.
"""
logger.error(f"An error occurred during the OpenAI request: {error}")
return DEFAULT_CATEGORY, "An error occurred during classification. Please check application logs."