-
-
Notifications
You must be signed in to change notification settings - Fork 45
Code Quality: Implement specific error handling for jAI search API endpoint #220
Copy link
Copy link
Open
Labels
↗️ medium priorityThis issue is crucialThis issue is crucial🔴 wontfixThis will not be worked on for nowThis will not be worked on for now✨ enhancementNew feature or request or improvementNew feature or request or improvementbackendChanges related to apisChanges related to apishacktoberfestRelated to hacktoberfestRelated to hacktoberfest✨jaiIssues, PRs or questions related to the ✨jAI moduleIssues, PRs or questions related to the ✨jAI module
Metadata
Metadata
Assignees
Labels
↗️ medium priorityThis issue is crucialThis issue is crucial🔴 wontfixThis will not be worked on for nowThis will not be worked on for now✨ enhancementNew feature or request or improvementNew feature or request or improvementbackendChanges related to apisChanges related to apishacktoberfestRelated to hacktoberfestRelated to hacktoberfest✨jaiIssues, PRs or questions related to the ✨jAI moduleIssues, PRs or questions related to the ✨jAI module
Problem
The jAI search API endpoint (
src/pages/api/jai/search.js) currently uses a generic error handler that returns basic error information for all failures. This makes it difficult for users and developers to understand the cause of errors and respond appropriately.Current Behavior
Expected Behavior
Location
File:
src/pages/api/jai/search.jsProposed Implementation
Steps to Complete
Definition of Done