Function map_code_to_status
Source pub fn map_code_to_status(code: Code) -> StatusCode
Expand description
Maps a gRPC status code to an HTTP status code.
Adheres to the canonical mapping defined in google.rpc.Code.
§Parameters
code: The gRPC status code.
§Returns
The corresponding http::StatusCode.