What is google.rpc.Status and how does the error-details model provide rich, structured error information?

Last updated 8 July 2026

  • google.rpc.Status is a protobuf error message with a canonical code, a developer-facing message, and a repeated details list of Any payloads.

  • Standard typed details like BadRequest, RetryInfo, QuotaFailure, and ErrorInfo let clients react programmatically (e.g. retry after the given delay).

  • It is serialized into the grpc-status-details-bin trailer, 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
All gRPC interview questions