错误处理
以下是您在使用 Alert Center API 时可能会收到的错误代码,以及有关如何解读这些错误代码的说明和在收到这些错误代码时应采取的措施。了解详情。
错误代码 |
说明 |
操作 |
400:错误请求 |
如果输入请求中存在错误,系统会返回此错误代码。 |
请检查该请求,对其进行必要的更改,然后重试。 |
401:凭据无效 |
访问令牌无效或已过期。 |
刷新访问令牌,然后重试。 |
404 |
未找到指定的资源。如果请求的提醒不存在,系统会抛出此异常。 |
|
409 |
指定的资源已存在。 |
获取资源,并根据需要执行更新。 |
500 |
处理请求时发生意外错误。 |
使用指数退避算法重试。 |
503 |
超出速率限制。 |
使用指数退避算法重试。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-18。
[null,null,["最后更新时间 (UTC):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."]]],[]]