-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Milestone
Description
Problem: API routes have varying error handling patterns
Examples:
// Some routes
console.error(err);
return res.status(500).end();
// Other routes
console.log(err);
return res.status(500).json(null);
// Better approach
console.error(err);
return res.status(500).json({
error: 'Internal server error',
code: 'INTERNAL_ERROR'
});Recommendation: Standardize error responses
Impact: Better client-side error handling
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done