How to response grpc error in middleware?

As a grpc proxy, traefik how to intercept a request and response a grpc error to client in a middleware?

As a grpc proxy, traefik how to intercept a request and response a grpc error to client in a middleware?

thx...