處理錯誤
以下是使用 Vault API 時可能會收到的錯誤代碼、如何解讀這些代碼,以及收到這些代碼時該如何處理。如需進一步的錯誤訊息相關協助,請參閱支援資源。
錯誤代碼 |
說明 |
動作 |
400:要求無效 |
當輸入要求發生錯誤時,系統就會傳回這個錯誤代碼。 |
請檢查要求,並對要求進行必要的變更,然後再試一次。 |
401:憑證無效 |
存取權杖無效或已過期。 |
請重新整理存取權杖,然後再試一次。 |
404 |
找不到指定的資源。如果要求包含不存在的案件、保留事項或帳戶,系統就會傳回這個錯誤代碼。 |
|
409 |
指定的資源已存在。 |
請再次嘗試取得資源,並視需要執行更新。 |
429 |
這項要求超出 Vault API 配額。 |
請查看 Vault API 使用限制,並按照該頁面說明使用指數輪詢重試演算法。 |
500 |
處理要求時發生非預期的錯誤。 |
以指數輪詢方式重試。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-21 (世界標準時間)。
[null,null,["上次更新時間:2024-12-21 (世界標準時間)。"],[[["This page lists common Vault API error codes, their meanings, and suggested solutions."],["Error codes range from bad requests (400) to internal server errors (500), each with specific causes."],["Users should consult the error code descriptions to understand the issue and take the recommended action."],["For quota issues (429), review usage limits and implement exponential backoff strategies."],["If further assistance is needed, consult the provided support resources."]]],["Vault API error codes indicate issues with requests or resources. 400 means a bad input request, requiring a check and correction. 401 signals invalid credentials, needing a token refresh. 404 signifies a missing resource. 409 means a resource already exists, prompting a resource retrieval or update. 429 denotes exceeding API limits, necessitating review of the limits and an exponential backoff approach. 500 represents an unexpected internal error that should also be retried with exponential backoff.\n"]]