Unexpected Behavior in HTTP Middleware: Unhandled Errors Cause Request Hang
We've just tried to create an HTTP middleware that can fail. The runtime behaviour is that the request just hung; the compiler also didn't tell us there was an unhandled error. Is this expected? It feels like ideally there should be a type failure, or the server should respond with a 500 by default if there is an unhandled error. We've created a reproducible version at https://effect.website/play#9da574e1b33a
