better handling of redirect in Routers. WsgiMiddleware handles errors so that response midllewares can be called