我们将于 2024 年 7 月 31 日逐步淘汰 Google Business Messages。点击
此处了解详情。
Error
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
枚举 |
ERROR_UNSPECIFIED |
未指定错误代码。 |
INVALID_REQUEST |
请求缺少参数、包含无效参数、包含多次参数,或者因其他原因而无效。 |
ACCESS_DENIED |
用户或授权服务器拒绝了请求 |
UNAUTHORIZED_CLIENT |
不允许客户端使用此方法请求授权代码。 |
UNSUPPORTED_RESPONSE_TYPE |
服务器不支持使用此方法获取授权代码。 |
INVALID_SCOPE |
请求的范围无效或未知。 |
SERVER_ERROR |
服务器可重定向并显示此错误代码,而不是向用户显示 500 内部服务器错误页面。 |
TEMPORARILY_UNAVAILABLE |
如果服务器正在进行维护或不可用,则可以返回此错误代码,而不是返回 503 Service Unavailable 状态代码。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThis documentation lists potential error codes returned by an OAuth 2.0 authorization server during the authorization process.\u003c/p\u003e\n"],["\u003cp\u003eThese errors help developers understand and handle issues like invalid requests, denied access, unsupported methods, or server problems.\u003c/p\u003e\n"],["\u003cp\u003eEach error code has a specific meaning, such as \u003ccode\u003eINVALID_REQUEST\u003c/code\u003e indicating a problem with the request parameters, or \u003ccode\u003eACCESS_DENIED\u003c/code\u003e signaling that the user or server rejected the request.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers should use these error codes to provide informative feedback to users and improve the user experience of their applications.\u003c/p\u003e\n"]]],[],null,["# Error\n\nThe list of [errors](https://www.oauth.com/oauth2-servers/authorization/the-authorization-response/) thrown by the server.\n\n| Enums ||\n|-----------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `ERROR_UNSPECIFIED` | Error code unspecified. |\n| `INVALID_REQUEST` | The request is missing a parameter, contains an invalid parameter, includes a parameter more than once, or is otherwise invalid. |\n| `ACCESS_DENIED` | The user or authorization server denied the request |\n| `UNAUTHORIZED_CLIENT` | The client is not allowed to request an authorization code using this method. |\n| `UNSUPPORTED_RESPONSE_TYPE` | The server does not support obtaining an authorization code using this method. |\n| `INVALID_SCOPE` | The requested scope is invalid or unknown. |\n| `SERVER_ERROR` | Instead of displaying a 500 Internal Server Error page to the user, the server can redirect with this error code. |\n| `TEMPORARILY_UNAVAILABLE` | If the server is undergoing maintenance, or is otherwise unavailable, this error code can be returned instead of responding with a 503 Service Unavailable status code. |"]]