What is google.rpc.Status and how does the error-details model provide rich, structured error information?
Last updated
google.rpc.Statusis a protobuf error message with a canonicalcode, a developer-facingmessage, and a repeateddetailslist ofAnypayloads.Standard typed details like
BadRequest,RetryInfo,QuotaFailure, andErrorInfolet clients react programmatically (e.g. retry after the given delay).It is serialized into the
grpc-status-details-bintrailer, and language libraries provide helpers to attach and parse it.
- https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto
- https://developers.google.com/maps/ai/grounding-lite/reference/rest/Shared.Types/Status
- https://dev.to/huizhou92/go-action-error-handling-in-grpc-agj
- https://grpc.io/docs/guides/error/
- https://github.com/grpc/grpc-swift-protobuf/blob/main/Sources/GRPCProtobuf/Errors/ErrorDetails.swift
- https://github.com/googleapis/api-client-staging/blob/master/generated/python/googleapis-common-protos/google/rpc/error_details_pb2.py
- https://google.aip.dev/193
- https://googleapis.dev/python/google-api-core/latest/exceptions.html