Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: third_party/grpc/doc/statuscodes.md

Issue 1932353002: Initial checkin of gRPC to third_party/ Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/grpc/doc/server-reflection.md ('k') | third_party/grpc/etc/roots.pem » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Status codes and their use in gRPC
2
3 gRPC uses a set of well defined status codes as part of the RPC API. All RPCs st arted 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 R PC.
4
5 The gRPC client and server-side implementations may also generate and return `st atus` on their own when errors happen.
6 Only a subset of the pre-defined status codes are generated by the gRPC librarie s. The following table lists these codes and summarizes the situations in which they are generated, either by the client or the server-side library implementati on.
7
8 | Case | Code | Generated at Client or Server |
9 | ------------- |:-------------| :-----:|
10 | Client Application cancelled the request | CANCELLED | Both |
11 | Deadline expires before server returns status | DEADLINE_EXCEEDED | Both |
12 | Method not found at server | UNIMPLEMENTED | Server|
13 | Server shutting down | UNAVAILABLE | Server|
14 | Server side application throws an exception (or does something other than retu rning a Status code to terminate an RPC) | UNKNOWN | Server|
15 | No response received before Deadline expires. This may occur either when the c lient is unable to send the request to the server or when the server fails to re spond in time. | DEADLINE_EXCEEDED | Both|
16 | Some data transmitted (e.g., request metadata written to TCP connection) befor e connection breaks | UNAVAILABLE | Client |
17 | Could not decompress, but compression algorithm supported (Client -> Server) | INTERNAL | Server |
18 | Could not decompress, but compression algorithm supported (Server -> Client) | INTERNAL | Client |
19 | Compression mechanism used by client not supported at server | UNIMPLEMENTED | Server |
20 | Server temporarily out of resources (e.g., Flow-control resource limits reache d) | RESOURCE_EXHAUSTED | Server|
21 | Flow-control protocol violation | INTERNAL | Both |
22 | Error parsing returned status | UNKNOWN | Client |
23 | Incorrect Auth metadata ( Credentials failed to get metadata, Incompatible cre dentials set on channel and call, Invalid host set in `:authority` metadata, etc .) | UNAUTHENTICATED | Both |
24 | Error parsing response proto | INTERNAL | Client|
25 | Error parsing request proto | INTERNAL | Server|
26
27
28 The following status codes are never generated by the library:
29 - INVALID_ARGUMENT
30 - NOT_FOUND
31 - ALREADY_EXISTS
32 - FAILED_PRECONDITION
33 - ABORTED
34 - OUT_OF_RANGE
35 - DATA_LOSS
OLDNEW
« no previous file with comments | « third_party/grpc/doc/server-reflection.md ('k') | third_party/grpc/etc/roots.pem » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698