處理錯誤
以下是使用 Alert Center API 時可能會收到的錯誤代碼,以及如何解讀這些代碼的說明,以及收到這些代碼時的處理方式。瞭解詳情。
錯誤代碼 |
說明 |
動作 |
400:錯誤的要求 |
當輸入要求發生錯誤時,系統就會傳回這個錯誤代碼。 |
請檢查要求,並對要求進行必要的變更,然後再試一次。 |
401:憑證無效 |
存取權杖無效或已過期。 |
請重新整理存取權杖,然後再試一次。 |
404 |
找不到指定的資源。在要求的快訊不存在時,系統會擲回此例外狀況。 |
|
409 |
指定的資源已存在。 |
取得資源,並視需要執行更新。 |
500 |
處理要求時發生非預期的錯誤。 |
以指數輪詢方式重試。 |
503 |
超過頻率限制。 |
以指數輪詢方式重試。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-18 (世界標準時間)。
[null,null,["上次更新時間:2024-11-18 (世界標準時間)。"],[[["This page lists error codes you might encounter when using the Alert Center API, along with their descriptions and suggested actions."],["Error codes range from bad requests (400) to server errors (500) and include issues like invalid credentials and rate limiting."],["Each error code has a recommended action, such as checking the request or refreshing the access token, to help you resolve the issue."],["For unexpected errors (500) and rate limiting (503), retrying with exponential backoff is recommended."]]],["The Alert Center API uses several error codes: 400 indicates a bad request requiring corrections, 401 means the access token needs refreshing, 404 signifies a missing resource. 409 denotes a pre-existing resource requiring retrieval and potential update. 500 signifies an unexpected error, and 503 means the rate limit was exceeded; both necessitate retries using exponential backoff. Each error code offers specific actions for resolution.\n"]]