Skip to content

Commit

Permalink
Update statuscodes.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dfawley authored Oct 6, 2023
1 parent c074e8d commit 2155f9c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions doc/statuscodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@ statuses are defined as such:

All RPCs started at a client return a `status` object composed of an integer
`code` and a string `message`. The server-side can choose the status it returns
for a given RPC. gRPC servers should never return a status whose `code` is
outside the range of codes defined above; any other value should be converted to
`UNKNOWN` (2) before being transmitted. Similarly, gRPC clients that receive
any value outside the range of codes defined above should convert the error to
`UNKNOWN` before returning it to the application.
for a given RPC. Applications should only use values defined above. gRPC libraries
that encounter values outside this range must either propagate them directly or
convert them to UNKNOWN.

The gRPC client and server-side implementations may also generate and
return `status` on their own when errors happen. Only a subset of
Expand Down

0 comments on commit 2155f9c

Please sign in to comment.