Enum Status
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Stato
Un enum che rappresenta il codice di stato.
Disponibile solo per le app Google Chat. Non disponibile per i componenti aggiuntivi di Google Workspace.
Per chiamare un enum, devi chiamare la relativa classe, il nome e la proprietà di base. Ad esempio,
CardService.Status.OK
.
Proprietà
Proprietà | Tipo | Descrizione |
OK | Enum | Mappatura HTTP: 200 OK |
CANCELLED | Enum | Mappatura HTTP: 499 Client Closed Request |
UNKNOWN | Enum | Errore sconosciuto. Mappatura HTTP: 500 Internal Server Error (Errore interno del server) |
INVALID_ARGUMENT | Enum | Il client ha specificato un argomento non valido. Mappatura HTTP: 400 Bad Request (Richiesta non valida) |
DEADLINE_EXCEEDED | Enum | Mappatura HTTP: timeout del gateway (504) |
NOT_FOUND | Enum | Mappatura HTTP: 404 Not Found |
ALREADY_EXISTS | Enum | L'entità che un client ha tentato di creare esiste già. Mappatura HTTP: conflitto (409) |
PERMISSION_DENIED | Enum | Mappatura HTTP: 403 accesso negato |
UNAUTHENTICATED | Enum | Mappatura HTTP: 401 Non autorizzato |
RESOURCE_EXHAUSTED | Enum | Mappatura HTTP: 429 Too Many Requests |
FAILED_PRECONDITION | Enum | L'operazione è stata rifiutata perché il sistema non è nello stato richiesto per l'esecuzione dell'operazione. Mappatura HTTP: 400 Bad Request (Richiesta non valida) |
ABORTED | Enum | L'operazione è stata interrotta, in genere a causa di un problema di concorrenza, ad esempio un errore di controllo del sequenziatore o l'interruzione della transazione. Mappatura HTTP: conflitto 409 |
OUT_OF_RANGE | Enum | L'operazione è stata tentata oltre l'intervallo valido. Mappatura HTTP: 400 Bad Request (Richiesta non valida) |
UNIMPLEMENTED | Enum | Mappatura HTTP: 501 Not Implemented |
INTERNAL | Enum | Errori interni. Ciò significa che alcune invarianti previste dal sistema di base sono state violate. Questo codice di errore è riservato agli errori gravi. Mappatura HTTP: 500 Errore interno del server |
UNAVAILABLE | Enum | Mappatura HTTP: 503 Servizio non disponibile |
DATA_LOSS | Enum | Perdita di dati non recuperabili o danneggiamento dei dati. Mappatura HTTP: 500 - Errore interno del server. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[null,null,["Ultimo aggiornamento 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. |"]]