Enum Status
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
状态
表示状态代码的枚举。
仅适用于 Google Chat 应用。不适用于 Google Workspace 插件。
如需调用枚举,您可以调用其父类、名称和属性。例如
CardService.Status.OK
。
属性
属性 | 类型 | 说明 |
OK | Enum | HTTP 映射:200 OK |
CANCELLED | Enum | HTTP 映射:499 Client Closed Request |
UNKNOWN | Enum | 未知错误。HTTP 映射:500 Internal Server Error |
INVALID_ARGUMENT | Enum | 客户端指定的参数无效。HTTP 映射:400 Bad Request |
DEADLINE_EXCEEDED | Enum | HTTP 映射:504 Gateway Timeout |
NOT_FOUND | Enum | HTTP 映射:404 Not Found |
ALREADY_EXISTS | Enum | 客户端尝试创建的实体已存在。HTTP 映射:409 Conflict |
PERMISSION_DENIED | Enum | HTTP 映射:403 Forbidden |
UNAUTHENTICATED | Enum | HTTP 映射:401 Unauthorized |
RESOURCE_EXHAUSTED | Enum | HTTP 映射:429 Too Many Requests |
FAILED_PRECONDITION | Enum | 操作被拒绝,因为系统未处于执行该操作所需的状态。HTTP 映射:400 Bad Request |
ABORTED | Enum | 操作已中止,通常是由于序列器检查失败或事务中止等并发问题。HTTP 映射:409 Conflict |
OUT_OF_RANGE | Enum | 尝试执行的操作已超出有效范围。HTTP 映射:400 Bad Request |
UNIMPLEMENTED | Enum | HTTP 映射:501 Not Implemented |
INTERNAL | Enum | 内部错误。这意味着底层系统所期望的一些不变量已损坏。此错误代码保留用于严重错误。HTTP 映射:500 Internal Server Error |
UNAVAILABLE | Enum | HTTP 映射:503 Service Unavailable |
DATA_LOSS | Enum | 数据丢失或损坏且不可恢复。HTTP 映射:500 内部服务器错误。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003e\u003ccode\u003eStatus\u003c/code\u003e is an enum representing status codes, specifically for Google Chat apps and not Google Workspace Add-ons.\u003c/p\u003e\n"],["\u003cp\u003eTo use a \u003ccode\u003eStatus\u003c/code\u003e enum value, call it using the format \u003ccode\u003eCardService.Status.[Property Name]\u003c/code\u003e, like \u003ccode\u003eCardService.Status.OK\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eEach \u003ccode\u003eStatus\u003c/code\u003e property corresponds to an HTTP status code, such as \u003ccode\u003eOK\u003c/code\u003e mapping to 200 OK and \u003ccode\u003eNOT_FOUND\u003c/code\u003e to 404 Not Found.\u003c/p\u003e\n"],["\u003cp\u003eThe provided table lists all available \u003ccode\u003eStatus\u003c/code\u003e properties along with their types and corresponding HTTP mappings for various error conditions.\u003c/p\u003e\n"]]],[],null,["# Enum Status\n\nStatus\n\nAn enum that represents the status code.\n\nOnly available for Google Chat apps. Not available for Google Workspace add-ons.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCardService.Status.OK`. \n\n### Properties\n\n| Property | Type | Description |\n|-----------------------|--------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `OK` | `Enum` | HTTP Mapping: 200 OK |\n| `CANCELLED` | `Enum` | HTTP Mapping: 499 Client Closed Request |\n| `UNKNOWN` | `Enum` | Unknown error. HTTP Mapping: 500 Internal Server Error |\n| `INVALID_ARGUMENT` | `Enum` | The client specified an invalid argument. HTTP Mapping: 400 Bad Request |\n| `DEADLINE_EXCEEDED` | `Enum` | HTTP Mapping: 504 Gateway Timeout |\n| `NOT_FOUND` | `Enum` | HTTP Mapping: 404 Not Found |\n| `ALREADY_EXISTS` | `Enum` | The entity that a client attempted to create already exists. HTTP Mapping: 409 Conflict |\n| `PERMISSION_DENIED` | `Enum` | HTTP Mapping: 403 Forbidden |\n| `UNAUTHENTICATED` | `Enum` | HTTP Mapping: 401 Unauthorized |\n| `RESOURCE_EXHAUSTED` | `Enum` | HTTP Mapping: 429 Too Many Requests |\n| `FAILED_PRECONDITION` | `Enum` | The operation was rejected because the system is not in a state required for the operation's execution. HTTP Mapping: 400 Bad Request |\n| `ABORTED` | `Enum` | The operation was aborted, typically due to a concurrency issue such as a sequencer check failure or transaction abort. HTTP Mapping: 409 Conflict |\n| `OUT_OF_RANGE` | `Enum` | The operation was attempted past the valid range. HTTP Mapping: 400 Bad Request |\n| `UNIMPLEMENTED` | `Enum` | HTTP Mapping: 501 Not Implemented |\n| `INTERNAL` | `Enum` | Internal errors. This means that some invariants expected by the underlying system have been broken. This error code is reserved for serious errors. HTTP Mapping: 500 Internal Server Error |\n| `UNAVAILABLE` | `Enum` | HTTP Mapping: 503 Service Unavailable |\n| `DATA_LOSS` | `Enum` | Unrecoverable data loss or corruption. HTTP Mapping: 500 Internal Server Error. |"]]