-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGrpcStatusCode.cs
More file actions
59 lines (42 loc) · 2.05 KB
/
Copy pathGrpcStatusCode.cs
File metadata and controls
59 lines (42 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
namespace Shiny.Net.HttpServer.Grpc;
/// <summary>
/// The gRPC status codes, as defined by the gRPC specification and carried in the
/// <c>grpc-status</c> trailer. The numeric values are part of the wire protocol.
/// </summary>
public enum GrpcStatusCode
{
/// <summary>The call completed successfully.</summary>
Ok = 0,
/// <summary>The call was cancelled, typically by the caller.</summary>
Cancelled = 1,
/// <summary>An error whose cause is not otherwise mapped. The default for an unhandled exception.</summary>
Unknown = 2,
/// <summary>The caller supplied an argument the server cannot work with, whatever the state.</summary>
InvalidArgument = 3,
/// <summary>The deadline expired before the call completed.</summary>
DeadlineExceeded = 4,
/// <summary>The requested entity was not found.</summary>
NotFound = 5,
/// <summary>The entity the caller tried to create already exists.</summary>
AlreadyExists = 6,
/// <summary>The caller is authenticated but not allowed to perform this operation.</summary>
PermissionDenied = 7,
/// <summary>A resource — quota, memory, message size — has been exhausted.</summary>
ResourceExhausted = 8,
/// <summary>The system is not in a state the operation can run against.</summary>
FailedPrecondition = 9,
/// <summary>The operation was aborted, typically by a concurrency conflict.</summary>
Aborted = 10,
/// <summary>The operation was attempted past the valid range.</summary>
OutOfRange = 11,
/// <summary>The method is not implemented or not supported by this server.</summary>
Unimplemented = 12,
/// <summary>An internal invariant was broken. Something is wrong with the server itself.</summary>
Internal = 13,
/// <summary>The service is unavailable — usually transient, and usually worth retrying.</summary>
Unavailable = 14,
/// <summary>Unrecoverable data loss or corruption.</summary>
DataLoss = 15,
/// <summary>The caller could not be authenticated.</summary>
Unauthenticated = 16
}