Files
Jiaxin ShanandGitHub f4da02580d Enable DefaultHTTPErrorHandler and Upgrade grpc-gateway to v2 (#369)
* Upgrade grpc-gateway to v2

* Customize error and enable DefaultHTTPErrorHandler

1. Enable `runtime.DefaultHTTPErrorHandler` to convert gRPC status code to HTTP code.
2. Since we use custom error struct, we need to implement `GRPCStatus` to make sure grpc-go can recognize the error code in our struct,
Otherwise, it will always return codes.Unknown(2), that's the reason we always see code 2 and HTTP 500 in the past.
2022-07-11 10:53:32 -07:00
..