-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
APIStellar WaveIssues in the Stellar wave programIssues in the Stellar wave programgood first issueGood for newcomersGood for newcomers
Description
Description
When a user hits an API route that doesn't exist, the server just hangs or returns a generic HTML error. We need a standard JSON response for missing endpoints so the frontend can handle it easily.
Requirements
- Add a catch-all route (
app.use('*', ...)) at the very bottom of the route declarations. - Return a
404HTTP status. - Return a simple JSON body:
{ "error": "Route not found" }.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
APIStellar WaveIssues in the Stellar wave programIssues in the Stellar wave programgood first issueGood for newcomersGood for newcomers