tenebrous-dicebot/api/node_modules/@improbable-eng/grpc-web/dist/typings/Code.d.ts

21 lines
465 B
TypeScript

export declare enum Code {
OK = 0,
Canceled = 1,
Unknown = 2,
InvalidArgument = 3,
DeadlineExceeded = 4,
NotFound = 5,
AlreadyExists = 6,
PermissionDenied = 7,
ResourceExhausted = 8,
FailedPrecondition = 9,
Aborted = 10,
OutOfRange = 11,
Unimplemented = 12,
Internal = 13,
Unavailable = 14,
DataLoss = 15,
Unauthenticated = 16
}
export declare function httpStatusToCode(httpStatus: number): Code;