Parent
#6
What to build
Error responses can currently leak internal details to clients (audit finding M4). Make the shared route-protection wrapper the single place that maps thrown errors to client responses: when a wrapped handler throws, the client receives only the route's configured generic error message and status, while the full error (message, stack) is logged server-side. No raw upstream error text, file path, or stack fragment reaches the response body from any protected route.
Acceptance criteria
Blocked by
None - can start immediately
Parent
#6
What to build
Error responses can currently leak internal details to clients (audit finding M4). Make the shared route-protection wrapper the single place that maps thrown errors to client responses: when a wrapped handler throws, the client receives only the route's configured generic error message and status, while the full error (message, stack) is logged server-side. No raw upstream error text, file path, or stack fragment reaches the response body from any protected route.
Acceptance criteria
npm testgreenBlocked by
None - can start immediately