Expand description
gRPC → HTTP error mapping.
Converts tonic::Status to appropriate HTTP status codes and JSON error bodies
following the gRPC-HTTP status code mapping from the gRPC specification.
Functions§
- grpc_
to_ http_ status - Map a gRPC status code to the corresponding HTTP status code.
- status_
to_ response - Convert a
tonic::Statusinto an axum HTTP response with JSON error body.