處理錯誤
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
以下是使用 Alert Center API 時可能會收到的錯誤代碼,以及如何解讀這些代碼的說明,以及收到這些代碼時的處理方式。瞭解詳情。
錯誤代碼 |
說明 |
動作 |
400:錯誤的要求 |
當輸入要求發生錯誤時,系統就會傳回這個錯誤代碼。 |
請檢查要求,並對要求進行必要的變更,然後再試一次。 |
401:憑證無效 |
存取權杖無效或已過期。 |
請重新整理存取權杖,然後再試一次。 |
404 |
找不到指定的資源。在要求的快訊不存在時,系統會擲回此例外狀況。 |
|
409 |
指定的資源已存在。 |
取得資源,並視需要執行更新。 |
500 |
處理要求時發生非預期的錯誤。 |
以指數輪詢方式重試。 |
503 |
超過頻率限制。 |
以指數輪詢方式重試。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-03-25 (世界標準時間)。
[null,null,["上次更新時間:2025-03-25 (世界標準時間)。"],[],[],null,["# Error Handling\n\nThe following are the error codes you might get when using Alert Center API\nalong with explanation on how to interpret them and guidance on what to do when\nyou get them. [Learn more](/workspace/admin/alertcenter/support).\n\n| **Error code** | **Description** | **Action** |\n|------------------------------|-----------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|\n| **400: Bad Request** | This error code is returned when there is an error in the input request. | Check the request, make required changes to the request, and try again. |\n| **401: Invalid Credentials** | The access token is invalid or expired. | Refresh the access token and try again. |\n| **404** | The specified resource was not found. This would be thrown when the requested alert does not exist. | |\n| **409** | The specified resource already exists. | Get the resource, and if needed perform an update. |\n| **500** | An unexpected error happened while processing the request. | Retry with [exponential backoff](https://developers.google.com/api-client-library/java/google-http-java-client/backoff). |\n| **503** | Rate limit exceeded. | Retry with [exponential backoff](https://developers.google.com/api-client-library/java/google-http-java-client/backoff). |"]]