處理錯誤
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
以下是使用 Vault API 時可能收到的錯誤代碼、解讀方式,以及收到錯誤代碼時的處理方式。如需錯誤相關的進一步協助,請參閱支援資源。
錯誤代碼 |
說明 |
動作 |
400:錯誤的要求 |
輸入要求發生錯誤時,系統會傳回這個錯誤碼。 |
檢查要求,進行必要變更,然後再試一次。 |
401:憑證無效 |
存取權杖無效或已過期。 |
請重新整理存取權杖,然後再試一次。 |
404 |
找不到指定的資源。如果要求包含不存在的案件、暫緩或帳戶,系統就會傳回這個錯誤碼。 |
|
409 |
指定的資源已存在。 |
請再次嘗試取得資源,並視需要執行更新。 |
429 |
要求超出 Vault API 配額。 |
請參閱「Vault API 使用限制」,並按照該頁面的說明使用指數輪詢演算法。 |
500 |
處理要求時發生未預期的錯誤。 |
以指數輪詢方式重試。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-29 (世界標準時間)。
[null,null,["上次更新時間:2025-08-29 (世界標準時間)。"],[],[],null,["# Error Handling\n\nThese are the error codes you might get when using the Vault API, how to\ninterpret them, and what to do when you get them.\nIf you need more help with an error, review the [support resources](/workspace/vault/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 error code is returned when the request has a matter, hold, or account that doesn't exist. | |\n| 409 | The specified resource already exists. | Try to get the resource again, and, if needed, perform an update. |\n| 429 | The request exceeds a Vault API quota. | Review the [Vault API usage limits](/workspace/vault/limits) and use an exponential backoff algorithm as described on that page. |\n| 500 | An unexpected error happened while processing the request. | Retry with exponential backoff. |"]]