Skip to main content

grpc_to_http_status

Function grpc_to_http_status 

Source
pub fn grpc_to_http_status(code: Code) -> StatusCode
Expand description

Map a gRPC status code to the corresponding HTTP status code.

Based on https://github.com/grpc/grpc/blob/master/doc/http-grpc-status-mapping.md