错误处理
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
以下是您在使用 Vault API 时可能会收到的错误代码、这些错误代码的含义以及收到这些错误代码时应采取的措施。
如果您需要有关错误的更多帮助,请查看支持资源。
错误代码 |
说明 |
操作 |
400:错误请求 |
当输入请求中存在错误时,系统会返回此错误代码。 |
检查请求,对请求进行必要的更改,然后重试。 |
401:凭据无效 |
访问令牌无效或已过期。 |
刷新访问令牌,然后重试。 |
404 |
找不到指定的资源。当请求中包含不存在的诉讼、暂缓或账号时,系统会返回此错误代码。 |
|
409 |
指定的资源已存在。 |
尝试再次获取资源,并在需要时执行更新。 |
429 |
相应请求超出了 Vault API 配额。 |
查看 Vault API 使用限制,并按照该页面上的说明使用指数退避算法。 |
500 |
处理请求时出现意外错误。 |
使用指数退避算法重试。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-29。
[null,null,["最后更新时间 (UTC):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. |"]]