adam jones
62f4453f37
feat: Add proper 404 error handling with helpful suggestions (#421)
Fixes #418
This PR addresses the issue where invalid API endpoints (like
`/servers`) were returning blank 200 responses instead of proper 404
errors.
## Changes
- Added catch-all 404 handler for unmatched routes
- Return RFC 7807 compliant JSON error responses
- Provide smart suggestions for common mistakes:
- `/servers` → suggest `/v0/servers`
- `/health` → suggest `/v0/health`
- `/ping` → suggest `/v0/ping`
- `/v1`, `/v2` → inform only v0 is supported
- Fixes blank 200 responses for invalid endpoints
- Improves API discoverability and debugging experience
## Testing
- ✅ Unit tests pass
- ✅ Integration tests pass
- ✅ Manual testing confirms proper 404 responses with helpful messages
Generated with [Claude Code](https://claude.ai/code)
---------
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: adam jones <domdomegg@users.noreply.github.com>
Co-authored-by: Radoslav Dimitrov <radoslav@stacklok.com>
|
2025-09-10 13:14:49 -07:00 |
| .. |
|
api
|
feat: Add proper 404 error handling with helpful suggestions (#421)
|
2025-09-10 13:14:49 -07:00 |
|
auth
|
Deduplicate server JSON structs between publisher and registry (#318)
|
2025-08-28 14:58:15 +01:00 |
|
config
|
Add registry validators (#350)
|
2025-09-04 22:45:59 +01:00 |
|
database
|
Use a connection pool instead of a single DB connection (#408)
|
2025-09-10 06:45:30 -07:00 |
|
importer
|
Clean up schema by simplifying version structure (#379)
|
2025-09-08 14:32:59 -07:00 |
|
service
|
Clean up schema by simplifying version structure (#379)
|
2025-09-08 14:32:59 -07:00 |
|
telemetry
|
Add OpenTelemetry metrics instrumentation (#290)
|
2025-08-21 14:23:37 +01:00 |
|
validators
|
Ban 'latest' as a reserved version string (#413)
|
2025-09-10 17:52:08 +00:00 |