Enum Status
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
État
Énumération représentant le code d'état.
Disponible uniquement pour les applications Google Chat. Non disponible pour les modules complémentaires Google Workspace.
Pour appeler un énumération, vous devez appeler sa classe parente, son nom et sa propriété. Par exemple,
CardService.Status.OK
.
Propriétés
Propriété | Type | Description |
OK | Enum | Mise en correspondance HTTP : 200 OK |
CANCELLED | Enum | Mise en correspondance HTTP : 499 Le client a fermé la requête |
UNKNOWN | Enum | Erreur inconnue. Mise en correspondance HTTP : 500 Erreur de serveur interne |
INVALID_ARGUMENT | Enum | Le client a spécifié un argument non valide. Mise en correspondance HTTP : 400 Requête incorrecte |
DEADLINE_EXCEEDED | Enum | Mappage HTTP : 504 Passerelle hors délai |
NOT_FOUND | Enum | Mise en correspondance HTTP : 404 Page introuvable |
ALREADY_EXISTS | Enum | L'entité qu'un client a essayé de créer existe déjà. Mise en correspondance HTTP : 409 Conflit |
PERMISSION_DENIED | Enum | Mise en correspondance HTTP : 403 Accès interdit |
UNAUTHENTICATED | Enum | Mise en correspondance HTTP : 401 Accès non autorisé |
RESOURCE_EXHAUSTED | Enum | Mise en correspondance HTTP : 429 Requêtes trop nombreuses |
FAILED_PRECONDITION | Enum | L'opération a été rejetée car le système n'est pas dans un état requis pour exécuter l'opération. Mise en correspondance HTTP : 400 Requête incorrecte |
ABORTED | Enum | L'opération a été abandonnée, généralement en raison d'un problème de simultanéité, tel qu'un échec de vérification du séquenceur ou un abandon de transaction. Mise en correspondance HTTP : 409 Conflit |
OUT_OF_RANGE | Enum | L'opération a été tentée au-delà de la plage valide. Mise en correspondance HTTP : 400 Requête incorrecte |
UNIMPLEMENTED | Enum | Mise en correspondance HTTP : 501 Non implémenté |
INTERNAL | Enum | Erreurs internes. Cela signifie que certains invariants attendus par le système sous-jacent n'ont pas été respectés. Ce code d'erreur est réservé aux erreurs graves. Mise en correspondance HTTP: 500 Erreur de serveur interne |
UNAVAILABLE | Enum | Mise en correspondance HTTP : 503 Service non disponible |
DATA_LOSS | Enum | Perte ou corruption de données irrécupérable. Mise en correspondance HTTP: 500 Erreur de serveur interne |
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/26 (UTC).
[null,null,["Dernière mise à jour le 2025/07/26 (UTC)."],[[["\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. |"]]