Which gRPC Status Code Should I Return?
Embed This Widget
Add the script tag and a data attribute to embed this widget.
Embed via iframe for maximum compatibility.
<iframe src="https://statuscodefyi.com/iframe/entity//" width="420" height="400" frameborder="0" style="border:0;border-radius:10px;max-width:100%" loading="lazy"></iframe>
Paste this URL in WordPress, Medium, or any oEmbed-compatible platform.
https://statuscodefyi.com/entity//
Add a dynamic SVG badge to your README or docs.
[](https://statuscodefyi.com/entity//)
Use the native HTML custom element.
gRPC defines 17 canonical status codes that map to common error conditions in distributed systems. Unlike HTTP, gRPC always returns HTTP 200 at the transport layer and encodes the status in trailers. This tree guides you to the right gRPC status code based on what went wrong.
Decision Steps
Did the RPC complete successfully?
Is the request message malformed, missing required fields, or contains invalid argument values?
Is the caller unauthenticated (no credentials or invalid/expired token)?
Does the caller lack permission to execute this operation?
Does the requested entity (resource, user, document) not exist?
Has the client exceeded a resource quota or rate limit?
Is the server or a downstream dependency temporarily unavailable?