UNPKG

1.73 kBTypeScriptView Raw
1/** The status of an Span.
2 *
3 * @deprecated Use string literals - if you require type casting, cast to SpanStatusType type
4 */
5export declare enum SpanStatus {
6 /** The operation completed successfully. */
7 Ok = "ok",
8 /** Deadline expired before operation could complete. */
9 DeadlineExceeded = "deadline_exceeded",
10 /** 401 Unauthorized (actually does mean unauthenticated according to RFC 7235) */
11 Unauthenticated = "unauthenticated",
12 /** 403 Forbidden */
13 PermissionDenied = "permission_denied",
14 /** 404 Not Found. Some requested entity (file or directory) was not found. */
15 NotFound = "not_found",
16 /** 429 Too Many Requests */
17 ResourceExhausted = "resource_exhausted",
18 /** Client specified an invalid argument. 4xx. */
19 InvalidArgument = "invalid_argument",
20 /** 501 Not Implemented */
21 Unimplemented = "unimplemented",
22 /** 503 Service Unavailable */
23 Unavailable = "unavailable",
24 /** Other/generic 5xx. */
25 InternalError = "internal_error",
26 /** Unknown. Any non-standard HTTP status code. */
27 UnknownError = "unknown_error",
28 /** The operation was cancelled (typically by the user). */
29 Cancelled = "cancelled",
30 /** Already exists (409) */
31 AlreadyExists = "already_exists",
32 /** Operation was rejected because the system is not in a state required for the operation's */
33 FailedPrecondition = "failed_precondition",
34 /** The operation was aborted, typically due to a concurrency issue. */
35 Aborted = "aborted",
36 /** Operation was attempted past the valid range. */
37 OutOfRange = "out_of_range",
38 /** Unrecoverable data loss or corruption */
39 DataLoss = "data_loss"
40}
41//# sourceMappingURL=spanstatus.d.ts.map
\No newline at end of file