エラー処理
Alert Center API の使用時に発生する可能性のあるエラーコードと、その解釈方法、発生した場合の対処方法を以下に示します。詳細
エラーコード |
説明 |
アクション |
400: Bad Request |
このエラーコードは、入力リクエストにエラーがある場合に返されます。 |
リクエストを確認し、必要な変更を加えてもう一度お試しください。 |
401: 無効な認証情報 |
アクセス トークンが無効か、期限切れです。 |
アクセス トークンを更新してから、もう一度お試しください。 |
404 |
指定されたリソースが見つかりません。リクエストされたアラートが存在しない場合、このエラーがスローされます。 |
|
409 |
指定されたリソースはすでに存在しています。 |
リソースを取得し、必要に応じて更新を行います。 |
500 |
リクエストの処理中に予期しないエラーが発生しました。 |
指数バックオフを使用して再試行します。 |
503 |
レート制限を超えています。 |
指数バックオフを使用して再試行します。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-11-18 UTC。
[null,null,["最終更新日 2024-11-18 UTC。"],[[["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."]]],["The Alert Center API uses several error codes: 400 indicates a bad request requiring corrections, 401 means the access token needs refreshing, 404 signifies a missing resource. 409 denotes a pre-existing resource requiring retrieval and potential update. 500 signifies an unexpected error, and 503 means the rate limit was exceeded; both necessitate retries using exponential backoff. Each error code offers specific actions for resolution.\n"]]