このドキュメントでは、Google API から返されるエラーコードとメッセージの一部を紹介します。具体的に、ここに記載されているエラーは、Google API のグローバル、つまりデフォルトのドメインに含まれます。多くの API では、グローバル ドメインに含まれない API 固有のエラーを特定する、独自のドメインも定義されています。これらのエラーでは、JSON レスポンスの domain プロパティの値は、youtube.parameter のような API 固有の値になります。
アップロード リクエストではないため、リクエストを処理できませんでした。/upload/* URI に送信できるのは、アップロード リクエストのみです。/upload プレフィックスを付けずに、同じパスにリクエストを再送信してください。
parseError
API サーバーがリクエストの本文を解析できません。
required
API リクエストに必要な情報がありません。必須情報にはパラメータやリソース プロパティがあります。
tooManyParts
含まれているパーツが多すぎるため、マルチパート リクエストを処理できませんでした。
unknownApi
リクエストが呼び出している API を認識できません。
unsupportedMediaProtocol
クライアントが、サポートされていないメディア プロトコルを使用しています。
unsupportedOutputFormat
alt パラメータ値で、このサービスでサポートされていない出力形式が指定されています。alt リクエスト パラメータの値を確認してください。
wrongUrlForUpload
リクエストはアップロード リクエストですが、正しい URI に送信されなかったため処理できませんでした。アップロード リクエストは、/upload/* プレフィックスを含む URI に送信する必要があります。/upload プレフィックスを含めた状態で、もう一度同じパスにリクエストを送信してください。
[[["わかりやすい","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 UTC。"],[[["Google APIs utilize global error codes, identified by the `global` domain, alongside API-specific errors, each categorized by HTTP status codes as defined in RFC 7231."],["Errors include issues such as invalid requests (`badRequest`), authorization problems (`unauthorized`), quota or rate limit exceedances (`forbidden`), and resource conflicts (`conflict`)."],["Specific 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."],["Each error code contains details like the `domain`, `reason`, `message`, `locationType`, and `location` to specify where the error occurred and give more information."],["The 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."]]],["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"]]