本页列出了使用 Chrome 浏览器时出现的一些错误和 组织权限限制。
“权限遭拒”错误消息示例
如果请求由于违反组织权限限制标头而被拒,则会收到 403 错误 返回的 HTTP 响应包含以下详细信息:
{
"error": {
"code": 403,
"message": "Access denied by organization restriction. Please contact your administrator for additional information.",
"status": "PERMISSION_DENIED",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "ORG_RESTRICTION_VIOLATION",
"domain": "googleapis.com",
"metadata": {
"service": "abc.googleapis.com"
}
}
]
}
}
格式有误的标头错误消息示例
如果请求包含格式不正确的 X-Goog-Allowed-Resources
标头,系统会返回 400 HTTP 响应,其中包含以下详细信息:
{
"error": {
"code": 400,
"message": "Org Restriction Header is not valid. Please pass a valid Org Restriction Header.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "ORG_RESTRICTION_HEADER_INVALID",
"domain": "googleapis.com",
"metadata": {
"service": "abc.googleapis.com"
}
}
]
}
}