Skip to content

Answer mapped exceptions in debug mode as well - #26

Merged
noha merged 1 commit into
mainfrom
mapped-exceptions-answer-in-debug-mode
Nov 4, 2026
Merged

noha merged 1 commit into
mainfrom
mapped-exceptions-answer-in-debug-mode

Conversation

@noha

@noha noha commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

The exception handler wrapper passed every exception on in debug mode before the mapper saw it, so an exception with a mapping of its own (a 400, a 403, a 503) opened a debugger and the client waited instead of getting its answer. The wrapper now maps first and, in debug mode, passes on only what the mapper leaves as an internal server error.

The exception handler wrapper passed every exception on in debug mode before
the mapper saw it, so an exception with a mapping of its own (a 400, a 403, a
503) opened a debugger and the client waited instead of getting its answer.
The wrapper now maps first and, in debug mode, passes on only what the mapper
leaves as an internal server error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@noha
noha merged commit b026ffa into main Nov 4, 2026
4 checks passed
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