Skip to content

feat(ui): implement strict 404 vessel-not-found protocol#2

Merged
amiabl-programr merged 2 commits intomainfrom
feat/hide-sensitive-route
Apr 8, 2026
Merged

feat(ui): implement strict 404 vessel-not-found protocol#2
amiabl-programr merged 2 commits intomainfrom
feat/hide-sensitive-route

Conversation

@amiabl-programr
Copy link
Copy Markdown
Owner

Description

This PR implements a robust catch-all exception strategy to handle unmapped application routes natively, preventing raw JSON exception leaks to web clients.

Key Changes:

  • NotFoundExceptionFilter: Created an intelligent exception filter that distinguishes between UI requests and /api requests. API routes now reliably return a clean, strictly-formatted JSON error.
  • Enterprise 404 UI: Added 404.html — a sleek, animated vessel-rejection page utilizing our corporate styling (and displaying a broken teapot symbol) to inform users the requested asset has been unequivocally deleted.
  • AppModule Configuration: Prevented @nestjs/serve-static from implicitly serving the SPA index.html on unresolved paths, allowing NestJS's native exception pipeline to properly intercept 404s.

@amiabl-programr amiabl-programr self-assigned this Apr 8, 2026
@amiabl-programr amiabl-programr added the bug Something isn't working label Apr 8, 2026
@amiabl-programr amiabl-programr merged commit 3c50ded into main Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant