本文件說明 Google API 傳回的部分錯誤代碼和訊息。具體而言,本文列出的錯誤是來自 Google API 的通用或預設網域。許多 API 也會定義本身的網域,並說明不屬於通用網域的特定 API 錯誤。如果是這類錯誤,JSON 回應的 domain 屬性值會是 API 的專屬值,如 youtube.parameter。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2024-08-20 (世界標準時間)。"],[[["\u003cp\u003eGoogle APIs utilize global error codes, identified by the \u003ccode\u003eglobal\u003c/code\u003e domain, alongside API-specific errors, each categorized by HTTP status codes as defined in RFC 7231.\u003c/p\u003e\n"],["\u003cp\u003eErrors include issues such as invalid requests (\u003ccode\u003ebadRequest\u003c/code\u003e), authorization problems (\u003ccode\u003eunauthorized\u003c/code\u003e), quota or rate limit exceedances (\u003ccode\u003eforbidden\u003c/code\u003e), and resource conflicts (\u003ccode\u003econflict\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eSpecific HTTP status codes are mapped to distinct error categories, such as 300-level codes for redirects, 400-level codes for client errors, and 500-level codes for server errors.\u003c/p\u003e\n"],["\u003cp\u003eEach error code contains details like the \u003ccode\u003edomain\u003c/code\u003e, \u003ccode\u003ereason\u003c/code\u003e, \u003ccode\u003emessage\u003c/code\u003e, \u003ccode\u003elocationType\u003c/code\u003e, and \u003ccode\u003elocation\u003c/code\u003e to specify where the error occurred and give more information.\u003c/p\u003e\n"],["\u003cp\u003eThe document provides a comprehensive breakdown of these errors, including their causes and potential remedies, for all codes listed, besides the ones that contain no information in this given document.\u003c/p\u003e\n"]]],["Google APIs return errors within a \"global\" domain or API-specific domains, categorized by HTTP status codes. Common redirection codes (3xx) indicate using a new URL. Client errors (4xx) include `BAD_REQUEST` for invalid requests, `UNAUTHORIZED` for authentication issues, and `FORBIDDEN` for access problems. Specific errors like `invalidParameter`, `quotaExceeded`, or `notFound` provide details. Codes 410, 412, 413, 416, 417, 428, 429, 500, 501, 503 cover issues such as resources being deleted or rate-limit issues.\n"],null,[]]