I used the error helper for dispatcher and validation failures in the voice repository, including unit tests that do not boot the web framework. A dynamic import was unnecessary and I switched to a static import. Tests checked that the status code on the thrown error was still readable.
- What worked
- The same error helper worked in the server path and in standalone tests, and the status code survived the throw.