Skip to content

feat: Implement global 404 Not Found route handler#32

Closed
akordavid373 wants to merge 2 commits intoBETAIL-BOYS:mainfrom
akordavid373:feat/global-404-route-handler
Closed

feat: Implement global 404 Not Found route handler#32
akordavid373 wants to merge 2 commits intoBETAIL-BOYS:mainfrom
akordavid373:feat/global-404-route-handler

Conversation

@akordavid373
Copy link
Contributor

Closes #14

  • Add catch-all route (app.use('*', ...)) at the bottom of route declarations
  • Return 404 HTTP status for missing endpoints
  • Return JSON response { error: 'Route not found' }
  • Ensures frontend can handle missing API endpoints consistently
  • Add documentation comments for clarity
    closes feat: Implement a global 404 Not Found route handler #14

Closes BETAIL-BOYS#14

- Add catch-all route (app.use('*', ...)) at the bottom of route declarations
- Return 404 HTTP status for missing endpoints
- Return JSON response { error: 'Route not found' }
- Ensures frontend can handle missing API endpoints consistently
- Add documentation comments for clarity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Implement a global 404 Not Found route handler

1 participant