Skip to content
大纲

错误码

错误信息格式

当用户访问FOS出现错误时,FOS会返回给用户相应的错误码和错误信息,便于用户定位问题,并做出适当的处理。 系统返回错误信息格式如下:

json
{
  "code": "NoSuchKey",
  "message": "The resource you requested does not exist",
  "requestId": " 4db2b34d-654d-4d8a-b49b-3049ca786409"
}

FOS错误码

其中code、message字段定义如下:

错误码(code)消息(message)描述HTTP状态码
successsuccess成功200 OK
successBoth this request and DPF request executed successfully.请求执行成功200 OK
successThis request executed successful, but the DPF request is failed.请求执行成功,但DPF执行失败203 Non-Authoritative Information
successThis request executed successful, but the third-party platform executed failed.请求执行成功,第三方执行失败203 Non-Authoritative Information
successThis request executed successful, but your dpf format is invalid.请求执行成功,DPF格式无效203 Non-Authoritative Information
successCallback failed.回调失败203 Non-Authoritative Information
successEncrypt failed.加密失败203 Non-Authoritative Information
successPayload too large.有效载荷过大203 Non-Authoritative Information
InvalidEncryptionAlgorithmThe specified encryption algorithm is invalid加密算法无效400 Bad Request
InvalidEncryptionCustomerKeyThe specified encryption customer-key is invalid, encrypt object by customer key md5 not match加密密钥无效,密钥md5不匹配。400 Bad Request
InvalidEncryptionKmsMkidThe specified encryption kms mkid is invalid, please check its status指定的加密KMS MKID无效,请检查其状态400 Bad Request
InvalidTargetTypeThe specified object key is symlink, target object of symlink also is symlink.软链接文件不支持再次设置软链接400 Bad Request
InvalidEncryptionSchemeThe specified encryption scheme is invalid, encrypt object by customer key must use https request加密Object必须使用HTTPS请求400 Bad Request
successThis request executed successful, but the dpf executed failed because the assumerole configuration you set is invalid.请求执行成功,但DPF执行失败,因为处理用户权限失败。203 Non-Authoritative Information
AccessDeniedAccess Denied.拒绝访问403 Forbidden
AccountOverdueYour request is denied because there is an overdue bill of your account.用户欠费403 Forbidden
AccessDeniedBySourceUrlAccess Denied By Source Url.源URL拒绝访问403 Forbidden
BadDigestThe Content-MD5 or x-fos-content-sha256 or x-fos-content-crc32 you specified did not match what we received.摘要错误,用户指定的md5或者sha256或者crc32与服务端计算不一致。400 Bad Request
BadDigestMD5The Content-MD5 you specified did not match what we received.错误的Content-MD5字段,与实际上传的数据MD5不符400 Bad Request
BadDigestSHA256The x-fos-content-sha256 you specified did not match what we received.错误的x-fos-content-sha256字段,与实际上传的数据sha256不符400 Bad Request
BadDigestCRC32The x-fos-content-crc32 you specified did not match what we received.错误的x-fos-content-crc32字段,与实际上传的数据crc32不符400 Bad Request
BucketAlreadyExistsThe requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again.Bucket已经存在409 Conflict
ObjectLockAlreadyInProgressThe bucket lock status is already InProgressBucket已经为锁定状态409 Conflict
BucketNotEmptyThe bucket you tried to delete is not empty.试图删除一个不为空的bucket409 Conflict
ClientSocketErrorclinet socket error, maybe client close connection.客户端连接失败,可能是客户端关闭了连接。200 OK
CORSConfigurationDoesNotMatchThe CORS Options request is not allowed because the request does not match with the CORS Configuration of the resource.请求资源与CORS配置不匹配403 Forbidden
CORSNotEnabledThe CORS is not enabled for this resource.未配置允许跨域访问403 Forbidden
ReplicationNotEnabledThe Bucket Replication is not enabled.跨区域数据同步未开启404 Not Found
UserQuotaNotConfiguredThe user quota does not configured未配置用户配额404 Not Found
ReplicationStatusErrorThe Bucket Replication Status is not correct. Please make sure both the source and dest bucket have no enabled replication conf and both are not the dest replication bucket of other bucket跨区域复制源Bucket或目标Bucket已经在另一条跨区域复制规则中被指定409 Conflict
ReplicationStatusNotEmptyThe bucket you tried to delete has an enabled replication conf or is a dest replication bucket of other bucket待删除的Bucket开启了跨区域复制功能。409 Conflict
InventoryStatusErrorThe Bucket Inventory Status is not correct. Please make sure dest bucket is same region!文件清单状态异常。请确保目的bucket在同地域。409 Conflict
ReplicationApiUsedInvalidThe replication api must upgrade,because you have used multi rules跨区域复制API版本需要更新409 Conflict
ReplicationConfDuplicateThe replication has exist with different id跨区域复制配置重复409 Conflict
EmptyHTTPAuthHeaderThe HTTP authorization header is empty. We do not allow using Session Token with empty authorization headersts签名请求中,缺少authorization请求header400 Bad Request
EntityTooSmallYour proposed upload is smaller than the minimum allowed object size.上传的数据小于限制400 Bad Request
EntityTooLargeYour proposed upload exceeds the maximum allowed object size.上传的数据大于限制400 Bad Request
CapacityExceededYour total upload bytes exceeds the maximum allowed in your account.超出账号容量限制403 Forbidden
BucketObjectNumExceededYour total upload object number exceeds the maxinum in your bucket超出Bucket文件数量限制403 Forbidden
BucketCapacityExceededYour total upload bytes exceeds the maximum allowed in your bucket超出Bucket容量限制403 Forbidden
ObjectNumExceededYour total upload object number exceeds the maxinum in your account超出账号文件数量限制403 Forbidden
BucketQuotaNotConfiguredThe bucket quota does not configured未配置Bucket配额404 Not Found
FetchObjectTaskIsRunningThe fetch object task you submit is running.FetchObject进行中200 OK
FetchObjectFailedFetch object failed, please check argument.文件抓取失败400 Bad Request
FileAlreadyExistsThe object you specified already exists and can not be overwritten.指定的文件已存在,无法覆盖409 Conflict
InappropriateJSONThe JSON you provided was well-formed and valid, but not appropriate for this operation.请求中的JSON格式正确,但语义上不符合要求。如缺少某个必需项,或者值类型不匹配等。400 Bad Request
InappropriateXMLThe XML you provided was well-formed and valid, but not appropriate for this operation.请求中的XML格式正确,但语义上不符合要求。适用场景同InappropriateJSON400 Bad Request
InvalidAccessKeyIdThe BCS Access Key Id you provided does not exist in our records.提供的Access Key不存在403 Forbidden
InvalidArgumentInvalid Argument.无效参数400 Bad Request
InvalidBucketNameThe specified bucket is not valid.Bucket名称不正确400 Bad Request
InvalidCopyDestinationThe copy destination is not valid复制的目标对象无效400 Bad Request
InvalidCORSRequestThe CORS request is not valid跨域请求错误400 Bad Request
InvalidDomainThe specified domain is not valid.域名不正确400 Bad Request
InvalidHTTPAuthHeaderThe HTTP authorization header is invalid. Consult the service documentation for details.请求头Authorization无效400 Bad Request
InvalidImageFormatYour image format is invalid.图片格式不正确400 Bad Request
InvalidObjectNameYour object key is too long.文件名长度超过限制400 Bad Request
InvalidTrashDirectoryNameYour trash directory name is not valid.回收站路径不正确400 Bad Request
InvalidDirectoryDirectory file must be empty目录文件必须为空400 Bad Request
ObjectLockNotLockedThe object lock is not locked, can not extend retentionday文件未被锁定,无法延长保留期限400 Bad Request
InvalidPartOne or more of the specified parts could not be found. The part might not have been uploaded, or the specified entity tag might not have matched the part's entity tag.找不到指定的分块。该分块可能未上传或指定的etag与分块不匹配。400 Bad Request
InvalidPartOrderThe list of parts was not in ascending order.Parts list must specified in order by part number.分块列表未按升序排列400 Bad Request
InvalidPolicyDocumentThe content of the form does not meet the conditions specified in the policy document.Policy格式错误400 Bad Request
InvalidRangeThe requested range cannot be satisfied.请求的Range范围无效416 Range Not Satisfiable
InvalidSessionTokenThe Session Token you provided is not valid. Please double check that you are using the correct Session Token obtained from STS (Security Token Service)STS Token无效400 Bad Request
InvalidURICould not parse the specified URI.URI形式不正确400 Bad Request
InvalidStaticWebSiteFormatThe format of index file or 404 file are not allowed.不允许的index或者404文件名或格式。 比如:文件格式不允许,或者index与404文件同名。400 Bad Request
InvalidJobStatusThe current job status does not supprot the operation.当前任务状态不支持操作400 Bad Request
InvalidStorageClassThe storage class specified is invalid, please check argument and consult the service documentation.指定的存储类型错误400 Bad Request
NotSupportStorageClassThe storage class specified is not support, please check argument and consult the service documentation.指定的存储类型错误501 Not Implemented
NotAllowShortenRetentiondayCould not shorten retentionday不允许缩短合规保留期限400 Bad Request
InvalidVersionThe API version specified was invalid.API版本错误404 Not Found
RequestRateLimitExceededYour request rate is too high. We have put limits on your bucket.请求速度太快并触发限速429 Too Many Requests
MalformedJSONThe JSON you provided was not well-formed.JSON格式不正确400 Bad Request
MalformedXMLThe XML you provided was not well-formed or did not validate against our published schema.XML格式不正确400 Bad Request
MaxMessageLengthExceededYour request was too big.请求体过大400 Bad Request
MetadataTooLargeYour metadata headers exceed the maximum allowed metadata size.超出metadata大小限制400 Bad Request
MethodNotAllowedThe specified method is not allowed against this resource.请求方法错误405 Method Not Allowed
MirrorFailedMirroring failed, please check your mirror configuration.镜像回源失败424 Failed Dependency
MissingContentLengthYou must provide the Content-Length HTTP header.未提供Content-Length411 Length Required
MissingDateHeaderRequest must have a "date" or "x-fos-date" header.请求中找不到date和x-fos-date两者之一;如果同时添加了date和x-fos-date,则x-fos-date的优先级高于date,二者的格式请参考:\ndate: Wed, 06 Apr 2016 06:34:40 GMT\nx-fos-date: 2016-04-06T08:23:49Z400 Bad Request
NoSuchBucketThe specified bucket does not exist.Bucket不存在404 Not Found
NoSuchInventoryConfigurationThe specified inventory configuration does not exist.清单配置不存在404 Not Found
NoSuchCORSConfigurationThe CORS configuration does not exist.未配置跨域规则404 Not Found
NoLifecycleConfigurationThe lifecycle configuration does not exist.未配置生命周期规则404 Not Found
NoProcessConfigurationThe process configuration does not exist.数据处理配置不存在404 Not Found
NoNotificationConfigurationThe notification configuration does not exist.未配置事件通知规则404 Not Found
NoReplicationConfigurationThe Replication configuration does not exist.未配置跨区域复制404 Not Found
NoSuchKeyThe specified key does not exist.不存在该Object404 Not Found
NoSuchStyleThe specified style does not exist.图片样式不存在404 Not Found
NoSuchObjectLockThe specified object lock does not exist.合规保留配置不存在404 Not Found
NoSuchJobThe job does not exist.批处理任务不存在404 Not Found
NoSuchUploadThe specified multipart upload does not exist. The upload ID might be invalid, or the multipart upload might have been aborted or completed.该uploadId所对应的三步上传不存在。uploadId错误或者三步上传已中止或者已完成。404 Not Found
NoCopyrightProtectionConfigurationThe copyright protection configuration does not exist.未配置版权保护404 Not Found
NoSuchBucketEncryptionThe bucket is not encrypted.该Bucket未加密404 Not Found
NoSuchBucketTrashDirectoryThe bucket does not activate trash, or trash has been turned off未开启回收站404 Not Found
NoSuchBucketAliasThe bucket does not activate alias, or bucket alias has been turned offBucket别名不存在404 Not Found
NoSuchBucketDefaultStyleThe bucket does not activate default style, or bucket default style has been turned offBucket默认样式不存在404 Not Found
NoSuchBucketStaticWebSiteConfigThe static web site configuration does not exist.Bucket 没有开启静态托管404 Not Found
StaticWebSiteIsDisableStatic web site is disabled or not implemented.静态网站托管功能被禁止。 如:即FOS不允许此region的bucket 开启静态网站托管功能,或者静态网站托管功能未上线。501 Not Implemented
NotImplementedA header you provided implies functionality that is not implemented.系统未实现501 Not Implemented
NotSymlinkThe specified object key is not symlink.文件不是软链接类型400 Bad Request
SymlinkTargetNotExistThe specified object key is symlink, target object of symlink does not exist.软链接目标文件不存在404 Not Found
PreconditionFailedThe specified If-Match header doesn't match the header you provided.指定的If-Match请求头与用户提供的不匹配。412 Precondition Failed
OptInRequiredYou must active fos service.FOS服务未开启,请开通FOS服务且确保账户未欠费。403 Forbidden
RequestExpiredRequest has expired. Timestamp date is XXX.请求的时间戳过期。请求超时,XXX要改成x-fos-date的值。如果请求中只有Date,则需要将Date转换为本规范指定的格式。403 Forbidden
RequestTimeoutYour socket connection to the server was not read from or written to within the timeout period.请求超时408 Request Timeout
RequestTimeTooSkewedThe difference between the request time and the server's time is too large.请求时间与服务器时间差异过大403 Forbidden
ObjectTooSmallToProcessObject is too small to process.文件过小,无法进行处理400 Bad Request
ObjectTooLargeToProcessObject is too large to process.文件过大,无法进行处理400 Bad Request
VideoSnapshotFailHandle video snapshot fail视频截帧失败400 Bad Request
VideoRealtimeCodecFailHandle video codec fail视频转码失败400 Bad Request
VideoInfoFailHandle video info fail获取视频信息失败400 Bad Request
SignatureDoesNotMatchThe request signature we calculated does not match the signature you provided. Check your Secret Access Key and signing method. Consult the service documentation for details.Authorization头域中附带的签名和服务端验证不一致403 Forbidden
ServiceUnavailablePlease reduce your request rate.服务不可用503 Service Unavailable
SlowDownPlease reduce your request rate.请求过于频繁503 Service Unavailable
TooManyBucketsYou have attempted to create more buckets than allowed.创建的Bucket数量超过限制400 Bad Request
TooManyConfigurationsYou have attempted to create more configurations than allowed.创建配置超过限制400 Bad Request
TooManyStylesYou have attempted to create more styles than allowed.创建样式数量超过限制400 Bad Request
TooManyJobsYou are attempting to create too many jobs.创建批处理任务数量超过限制400 Bad Request
TooManyMultiUploadsYou have attempted to do more multipart uploads than allowed.上传的分块数量超过限制400 Bad Request
InvalidContentLengthInvalid Content-Length or Transfer-Encoding.Content-Length不正确400 Bad Request
ReadBodyErrorRead http body error, please try again.读取请求内容错误,请重试400 Bad Request
DomainAlreadyExistsThe specified domain is bound to %s already.域名已被绑定到其他bucket409 Conflict
TooManyDomainsYou have attempted to bind to more buckets than allowed.域名数据超过限制400 Bad Request
NoSuchDomainThe specified domain does not exist.域名不存在404 Not Found
NoSuchMirroringThe specified mirroring configuration does not exist.未配置镜像回源规则404 Not Found
OffsetIncorrectOffset not equal to current object length追加Appendable Object时,<OffsetSize>值不等于已上传的Object的大小或者<OffsetSize>值不为0但Object不存在409 Conflict
ObjectUnappendableThe object can not be append不能对非Appendable的Object做AppendObject操作403 Forbidden
NotAllowCopyThis object not allow to copy to another one文件不允许复制400 Bad Request
NotAllowModifyPermission not match, not allow modify object data文件不允许修改403 Forbidden
ObjectIllegalThe Object is illegal文件不合规403 Forbidden
OnlyAllowModifyPermission not match, you only have modify permission, so you can not upload a new object权限不匹配,仅支持修改403 Forbidden
ObjectAclNotPassThe object acl does not pass.文件权限不匹配403 Forbidden
ObjectBannedYour object contains sensitive information. We have restricted your resources.文件已被封禁403 Forbidden
ObjectLockedYour object has been locked.文件已被锁定,无法进行操作423 Locked
ObjectLockConflictYou cannot lock/unlock a banned object.文件已被封禁403 Forbidden
ObjectAclNotExistsThe object acl does not exist.未配置文件权限规则404 Not Found
InternalErrorWe encountered an internal error. Please try again.内部错误500 Internal Server Error
PartialContentErrorErrors occurred at storage system and return partial content.请求时发生错误并返回部分内容510 Not Extended
NoStorageAnalysisConfNo storage analysis conf is set.未设置存储分析配置404 Not Found
StorageAnalysisConfIdConflictThe confId you provide is confict with existing confs.存储分析配置ID与现有配置冲突409 Conflict
ObjectImmutableThe object is immutable已经开启合规保留,文件无法进行删除或修改操作409 Conflict
ObjectRenameConflictObject rename conflict occurred, please retry it later or avoid concurrent update.重命名文件冲突409 Conflict
InvalidStorageAnalysisPrefixThe storage analysis prefix you provide is invalid.存储分析配置中的文件前缀无效400 Bad Request
StorageAnalysisConfigNumExceededStorage analysis confs have exceeded the max allow num.存储分析配置数量超出限制400 Bad Request
SqlSyntaxErrorThe sql expression in SelectRequest is invalid, it contains unsupported syntax or incorrect syntax.SQL语法错误400 Bad Request
InvalidSqlFieldsThe field in sql expression is invalid, it contains operators or other literals in SELECT clause.SQL表达式中字段无效400 Bad Request
InvalidSqlBinaryExprThe binary expression in sql is invalid, left operand is incompatible with right operand.SQL错误400 Bad Request
SqlFieldsNumExceedLimitThe number of fields in sql expression exceed the maximum allowable number limit.SQL中的字段数量超过了允许的最大数量限制400 Bad Request
AggregateInvalidFieldThe field of aggregate function in the sql is invalid, it is not numeric data type.SQL中聚合函数错误,使用字段非数值类型。400 Bad Request
InvalidSqlJsonPathDepthThe depth of json path is invalid, it exceed the maximum limit or less than 1.SQL错误,json路径的深度无效,超过最大限制或者小于1。400 Bad Request
SqlSourceNumExceedLimitOnly one source is supported in sql expression.SQL表达式中仅支持一个数据源400 Bad Request
RecordTooLargeThe length of record in csv file exceeds limit.CSV文件长度超过限制400 Bad Request
FieldNotExistThe field in SQL not exist in fileSQL字段不存在400 Bad Request
InappropriateJsonThe format of json object is inappropriate.JSON格式错误400 Bad Request
HeaderNotExistNo valid header info is found in csv file.CSV文件格式错误400 Bad Request
DecompressErrorError occurred when decompress object.文件解压失败400 Bad Request
InvalidFileTypeThe type of file is invalid, only JSON and CSV are supported.文件类型错误,仅支持JSON及CSV400 Bad Request
DataOverflowsTypeThe aggregate result of data overflows data type limit.数据聚合结果超出了数据类型的限制400 Bad Request
InvalidSqlSourceInvalid data source in sql expression SELECT clause, check the sql source format of csv or json object.请检查CSV或JSON对象的SQL源格式400 Bad Request
InvalidSqlLimitValueThe value of LIMIT clause in sql expression is invalid, it must greater than zero.SQL表达式中LIMIT值无效,必须大于零400 Bad Request
InvalidSqlNotOperatorThe operand of NOT operator is invalid, NOT operator only can be followed by BETWEEN/IN/LIKE.SQL错误,"NOT"操作需要跟随"BETWEEN/IN/LIKE"之后。400 Bad Request
InvalidSqlBetweenOperatorThe operand of BETWEEN operator is invalid, BETWEEN should with AND.SQL中"BETWEEN"使用错误400 Bad Request
InvalidSqlInOperatorThe values of IN operator are invalid, check values in (……).SQL中"IN"操作使用错误400 Bad Request
InvalidSqlIsOperatorThe operand of IS operator is invalid, IS operator can only be followed by NULL or NOT NULL.SQL中"IS"操作使用错误400 Bad Request
InvalidSqlLikeOperatorThe operand of LIKE operator is invalid, LIKE operator can only be followed by string.SQL中"LIKE"操作使用错误400 Bad Request
InvalidSqlFunctionThe function in sql expression is invalid, check the function parameters number and type.SQL表达式中的函数无效,请检查函数参数的数量和类型400 Bad Request
InvalidExpressionParameterThe value of expression parameter in SelectRequest is invalid, please base64 decode it and do not exceed max length limit.Select扫描请求expression参数错误,请进行base64编码并不超过长度限制。400 Bad Request
InvalidExpressionTypeParameterThe value of expressionType parameter in SelectRequest is invalid, only SQL expressions are supported.Select扫描请求expressionType参数错误400 Bad Request
InvalidCompressionTypeParameterThe value of compressionType parameter in SelectRequest is invalid, only GZIP and NONE are supported.Select扫描请求compressionType参数错误400 Bad Request
InvalidJsonTypeParameterThe value of Json type parameter in SelectRequest is invalid, only DOCUMENT/LINES are supported.Select扫描请求json type参数错误400 Bad Request
InvalidQuoteFieldsParameterThe value of quote fields parameter in SelectRequest is invalid, only ALWAYS/ASNEEDED are supported.Select扫描请求quote fields参数错误400 Bad Request
InvalidSelectRequestJsonBodySome parameters in SelectRequest json body is invalid, please check all optional and required parameters.Select扫描请求参数错误400 Bad Request
StorageAnalysisConfigNumExceededStorage analysis confs have exceeded the max allow num.存储分析配置超过最大限制400 Bad Request
NotArchiveObjectObject is not archive storage class.当前object不是归档类型文件400 Bad Request
DuplicationRequestDuplication request.重复请求400 Bad Request
RestoreAlreadyInProgressThe object is restoring.Don't restore the object again.您已经成功调用过RestoreObject接口,FOS服务端正在执行解冻操作。请不要重复执行RestoreObject409 Conflict
RestoreAlreadyThe object is restored.归档文件处于解冻状态,无需重重复调用409 Conflict
ObjectLockAlreadyLockedThe object lock status is locked.合规保留已开启409 Conflict
ObjectLockAlreadyExpiredThe object lock status is expired.合规保留已过期409 Conflict
CasUpdateConflictAn update conflict occurred, please retry it later or avoid concurrent update.并发更新冲突,请稍后重试或者避免并发更新。409 Conflict
InvalidObjectStateThe object is freezed or restoring.归档类型文件状态不合法,归档文件冰冻中或取回中。403 Forbidden