Skip to content

fix(server): stop exposing named defects#27471

Merged
nexxeln merged 1 commit into
devfrom
nxl/safe-http-defects
May 14, 2026
Merged

fix(server): stop exposing named defects#27471
nexxeln merged 1 commit into
devfrom
nxl/safe-http-defects

Conversation

@nexxeln
Copy link
Copy Markdown
Member

@nexxeln nexxeln commented May 14, 2026

summary

  • return the generic safe 500 body for NamedError defects instead of exposing their serialized payload
  • add middleware coverage that proves named defects do not leak internal messages

testing

  • bun test test/server/httpapi-error-middleware.test.ts --timeout 30000
  • bun typecheck

@nexxeln nexxeln merged commit 27ac53a into dev May 14, 2026
10 of 12 checks passed
@nexxeln nexxeln deleted the nxl/safe-http-defects branch May 14, 2026 07:21
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.

1 participant