fullstorydev / grpchan

Channels for gRPC: custom transports
MIT License
204 stars 23 forks source link

httpgrpc error renderer should allow customizing message and body, too #49

Closed jhump closed 3 years ago

jhump commented 3 years ago

Luckily, we haven't cut a release with the ErrorRenderer stuff in it. So I think it's safe to make an incompatible change, since any new release would still be compatible with prior release(s).

An oversight in past formulation of this: we really want to be able to customize the error message and likely even the body, too. So this changes the signature of the ErrorRenderer to support arbitrary rendering of an error response.