Skip to content

feat: add centralized API error handling utility#115

Merged
Shriii19 merged 2 commits into
Shriii19:masterfrom
ash1shkumar:feat/centralized-api-error-handler
May 25, 2026
Merged

feat: add centralized API error handling utility#115
Shriii19 merged 2 commits into
Shriii19:masterfrom
ash1shkumar:feat/centralized-api-error-handler

Conversation

@ash1shkumar
Copy link
Copy Markdown
Contributor

Summary

Implemented a centralized API error handling utility to reduce duplicated error handling logic across backend routes.

Changes Made

  • Added reusable handleApiError() utility
  • Centralized API error response formatting
  • Replaced repeated catch-block logic in signup API
  • Improved maintainability and cleaner backend structure

Benefits

  • Consistent API error responses
  • Easier debugging and logging
  • Cleaner and more scalable route handlers
  • Reduced duplicated backend code

Testing

  • Verified successful production build using npm run build
  • Confirmed TypeScript compilation passes without errors

Issue

Closes #110

Contributing Under

GSSoC 2026
NSoC 2026

Level 3 / Advanced

@vercel
Copy link
Copy Markdown

vercel Bot commented May 25, 2026

@ash1shkumar is attempting to deploy a commit to the shreemp194-gmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown

👋 Thank you for opening this pull request! I will review your changes and assist you soon.

@ash1shkumar
Copy link
Copy Markdown
Contributor Author

@Shriii19 Please review this PR when possible. Since this implementation involves backend/security-focused improvements and production-level handling, could you please update the label from Level 2 to Level 3 / Advanced? Thanks!

@vercel
Copy link
Copy Markdown

vercel Bot commented May 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
flow-forge Ready Ready Preview, Comment May 25, 2026 3:27pm

@Shriii19
Copy link
Copy Markdown
Owner

@ash1shkumar resolve the conflicts.

@ash1shkumar
Copy link
Copy Markdown
Contributor Author

@Shriii19 ,resolved conflicts. This PR is ready for review.

@Shriii19 Shriii19 merged commit 1c792b7 into Shriii19:master May 25, 2026
6 checks passed
@ash1shkumar ash1shkumar deleted the feat/centralized-api-error-handler branch May 25, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[NSoC] Create Centralized API Error Handling System

2 participants