Enum Status

  • Status is an enum representing status codes available only for Google Chat apps.

  • Enums are called by referencing their parent class, name, and property, like CardService.Status.OK.

  • The Status enum includes various properties mapping to standard HTTP status codes, such as OK (200), NOT_FOUND (404), and INTERNAL (500).

Status

An enum that represents the status code.

Only available for Google Chat apps. Not available for Google Workspace add-ons.

To call an enum, you call its parent class, name, and property. For example, CardService.Status.OK.

Properties

PropertyTypeDescription
OKEnumHTTP Mapping: 200 OK
CANCELLEDEnumHTTP Mapping: 499 Client Closed Request
UNKNOWNEnumUnknown error. HTTP Mapping: 500 Internal Server Error
INVALID_ARGUMENTEnumThe client specified an invalid argument. HTTP Mapping: 400 Bad Request
DEADLINE_EXCEEDEDEnumHTTP Mapping: 504 Gateway Timeout
NOT_FOUNDEnumHTTP Mapping: 404 Not Found
ALREADY_EXISTSEnumThe entity that a client attempted to create already exists. HTTP Mapping: 409 Conflict
PERMISSION_DENIEDEnumHTTP Mapping: 403 Forbidden
UNAUTHENTICATEDEnumHTTP Mapping: 401 Unauthorized
RESOURCE_EXHAUSTEDEnumHTTP Mapping: 429 Too Many Requests
FAILED_PRECONDITIONEnumThe operation was rejected because the system is not in a state required for the operation's execution. HTTP Mapping: 400 Bad Request
ABORTEDEnumThe operation was aborted, typically due to a concurrency issue such as a sequencer check failure or transaction abort. HTTP Mapping: 409 Conflict
OUT_OF_RANGEEnumThe operation was attempted past the valid range. HTTP Mapping: 400 Bad Request
UNIMPLEMENTEDEnumHTTP Mapping: 501 Not Implemented
INTERNALEnumInternal 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
UNAVAILABLEEnumHTTP Mapping: 503 Service Unavailable
DATA_LOSSEnumUnrecoverable data loss or corruption. HTTP Mapping: 500 Internal Server Error.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年12月03日 UTC.