API レスポンスエラーが発生すると、Log Service は HTTP ステータスコードとレスポンスボディの特定のエラーの詳細を含むエラーメッセージを返します。 レスポンスボディのエラー詳細の形式です。
{
"errorCode" : <ErrorCode>,
"errorMessage" : <ErrorMessage>
}
Log Service によって返される可能性のあるすべてのエラー メッセージの中には、ほとんどの API に適用できるエラーメッセージもあれば、API 固有のメッセージもあります。 複数の API のレスポンスに関する次の一般的なエラーコードをご参照ください。 API 固有のエラーコードについては、対応する API リファレンスの説明をご参照ください。
HTTP ステータスコード | エラーコード | エラーメッセージ | 説明 |
---|---|---|---|
411 | MissingContentLength | Content-Length does not exist in http header when it is necessary. | 必要な Content-Length リクエストヘッダーは提供されません。 |
415 | InvalidContentType | Content-Type {type} is unsupported. | 指定された Content-Type はサポートされていません。 |
400 | MissingContentType | Content-Type does not exist in http header when body is not empty. | HTTP リクエストボディが空でない場合、Content-Type ヘッダーは指定されません。 |
400 | MissingBodyRawSize | x-log-bodyrawsize does not exist in header when it is necessary. | 圧縮シナリオでは、必要な x-log-bodyrawsize リクエストヘッダーは提供されません。 |
400 | InvalidBodyRawSize | x-log-bodyrawsize is invalid. | x-log-bodyrawsize 値が無効です。 |
400 | InvalidCompressType | x-log-compresstype {type} is unsupported. | x-log-compresstype で指定された圧縮タイプはサポートされていません。 |
400 | Missinghost | Host does not exist in http header. | HTTP 標準リクエストヘッダー ホストは提供されません。 |
HTTP 標準リクエストヘッダー ホストは提供されません。 | Missingdate | Date does not exist in http header. | HTTP 標準リクエストヘッダーの日付が指定されていません。 |
400 | InvalidDateFormat | Date {date} must follow RFC822. | Date のリクエストヘッダー値は RFC822 標準に適合していません。 |
400 | MissingAPIVersion | x-log-apiversion does not exist in http header. | HTTP リクエストヘッダー x-log-apiversion は提供されません。 |
400 | InvalidAPIVersion | x-log-apiversion {version} is unsupported. | HTTP 要求ヘッダー x-log-apiversion の値はサポートされていません。 |
400 | MissAccessKeyId | x-log-accesskeyid does not exist in header. | 承認ヘッダーには AccessKey ID が指定されていません。 |
401 | Unauthorized | The AccessKeyId is unauthorized. | 指定された AccessKey ID 値は許可されていません。 |
400 | MissingSignatureMethod | x-log-signaturemethod does not exist in http header. | HTTP リクエストヘッダーx-log-signaturemethod は提供されていません。 |
400 | InvalidSignatureMethod | signature method {method} is unsupported. | x-log-signaturemethod ヘッダーで指定されたシグネチャ メソッドはサポートされていません。 |
400 | RequestTimeTooSkewed | Request time exceeds server time more than 15 minutes. | リクエストの送信時間は、現在のサーバー時刻の前後 15 分を超えています。 |
404 | ProjectNotExists | Project {name} does not exist. | Log Service プロジェクトが存在しません。 |
401 | SignatureNotMatch | Signature {signature} is not matched. | リクエストのデジタル署名が Log Service で計算された署名と一致しません。 |
403 | WriteQuotaExceed | Write quota is exceeded. | ログ書き込みクォータを超えました。 |
403 | Readquotaexceed | Read quota is exceeded. | ログ読み取りクォータを超えています。 |
500 | InternalServerError | Internal server error message. | 内部サーバーエラー |
503 | ServerBusy | The server is busy, please try again later. | サーバーがビジー状態です。 後でもう一度やり直してください。 |
エラー メッセージの {...} は、特定のエラー情報を示します。 たとえば、ProjectNotExists エラー メッセージの {name} は、特定のプロジェクト名に置き換えられます。