cookie-cutter
cookie-cutter copied to clipboard
Support returning gRPC Error Codes from handlers
Currently when an error is thrown from a gRPC handler, GrpcInputSource treats the error as generic Error type and returns as UNKNOWN_ERROR
. But grpc api has a richer error definition here.
So it's better grpc input source to check error type returned from handler and use status code if exists.