Middleware errors are not being returned in response type
I have a user route using an auth middleware,
And this is the auth middleware,
But, the response type has only 2 possible status code.
This is a problem because I write some tests that expect this error code when accessing an auth protected route without auth.
1 Reply
Just found the issue about this on GitHub
https://github.com/honojs/hono/issues/3170
GitHub
Hono doesn't consider status codes from middlewares with `testClien...
What version of Hono are you using? 4.4.9 What runtime/platform is your app running on? Bun What steps can reproduce the bug? // index.ts import { Hono } from "hono"; import { logger } fr...