strong-error-handler
strong-error-handler copied to clipboard
Honour expose property of http-errors
Description
This commit adds support for the expose property used by the
http-errors module, which allows developers to explicitly signal the
error message to be passed to the HTTP response for errors. This is
useful for certain errors (e.g., those with status code >=500) where the
original error message is otherwise suppressed by default.
Related issues
- connect to #78
Checklist
- [x] New tests added or existing tests modified to cover all changes
- [x] Code conforms with the style guide