-
Notifications
You must be signed in to change notification settings - Fork 790
Closed
Labels
Description
I don't know why, but the StatusCode enums are in the wrong order.
grpc-web/packages/grpc-web/index.d.ts
Line 130 in 1779661
export enum StatusCode { |
That shows them sorted alphabetically, but they are not actually that way at all. The actual ordering:
StatusCode: {
OK: 0,
CANCELLED: 1,
UNKNOWN: 2,
INVALID_ARGUMENT: 3,
DEADLINE_EXCEEDED: 4,
NOT_FOUND: 5,
ALREADY_EXISTS: 6,
PERMISSION_DENIED: 7,
UNAUTHENTICATED: 16,
RESOURCE_EXHAUSTED: 8,
FAILED_PRECONDITION: 9,
ABORTED: 10,
OUT_OF_RANGE: 11,
UNIMPLEMENTED: 12,
INTERNAL: 13,
UNAVAILABLE: 14,
DATA_LOSS: 15
}