# How to response grpc error in middleware?

**URL:** <https://community.traefik.io/t/how-to-response-grpc-error-in-middleware/7108>\
**Category:** Traefik v2\
**Tags:** middleware\
**Created:** [July 28, 2020, 2:52am UTC](https://community.traefik.io/t/how-to-response-grpc-error-in-middleware/7108 "2020-07-28T02:52:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yyyiue](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/yyyiue/32/2385_2.png) [@yyyiue](https://community.traefik.io/u/yyyiue)\
**Post date:** [July 28, 2020, 2:52am UTC](https://community.traefik.io/t/how-to-response-grpc-error-in-middleware/7108/1 "2020-07-28T02:52:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![yyyiue](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/yyyiue/32/2385_2.png) [@yyyiue](https://community.traefik.io/u/yyyiue)\
**Post date:** [July 30, 2020, 2:41am UTC](https://community.traefik.io/t/how-to-response-grpc-error-in-middleware/7108/2 "2020-07-30T02:41:10Z")

</div>

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

thx...
