Effect CommunityEC
Effect Community9mo ago
1 reply
alerosa

Potential Issue with `http.status` in `HttpMiddleware.logger` Using `HttpApiBuilder.toWebHandler`

Hello, I might have found a potential issue with the http.status field set by the HttpMiddleware.logger when used in conjunction with HttpApiBuilder.toWebHandler.

Whenever there is an error, the http.status is always set to 500, even if the actual error return by the router is a 4xx. Here is a reproduction of the problem: https://effect.website/play#dca309b02002

Not sure if I'm doing something wrong or if it's a legit issue.
Was this page helpful?