gRPC & RPC

gRPC Status Code

One of 17 standard numeric codes (0–16) returned by gRPC services, including OK (0), CANCELLED (1), UNKNOWN (2), INVALID_ARGUMENT (3), NOT_FOUND (5), and INTERNAL (13). Every gRPC response carries a status code and optional message, even on success. The codes map loosely to HTTP status code semantics but are protocol-independent. Rich error details can be attached via google.rpc.Status to convey structured error information beyond the numeric code.

Giao thức liên quan

Xem thêm