开发者社区> 问答> 正文

智能云相册的API错误码表


智能云相册返回标准的HTTP状态码来表示响应状态。

  • 200: 表示请求被成功接收并处理。某些批量处理接口需要根据响应的内容来判断请求中每个具体项是否成功处理。
  • 400:参数不对。通常以Missing开头的Code表示缺失了必选参数。以InvalidParameter开通的Code表示参数不合法。
  • 403:Code为UnauthorizedAccess表示无权进行指定操作。通常是RAM中的Policy设置的问题。
  • 5xx:表示服务端暂时不能处理请求。

以下为详细的错误码信息:
HTTP状态码错误代码(Code)详细信息(Message)描述
200Successsuccess请求成功。
400InvalidParameter.AlbumIdSourceAlbumId can not be the same as TargetAlbumId.在相簿间移动照片时,源和目标相簿不能相同。
400InvalidParameter.AlbumNameThe specified parameter AlbumName is invalid.相簿的名称不合法。
400InvalidParameter.AlbumNameDuplicatedThe Album name provided has already been taken.新建或者重命名相簿时,相册重名。
400InvalidParameter.FaceIdSourceFaceId can not be the same as TargetFaceId.在人脸间移动照片时,源和目标的人脸不能相同。
400InvalidParameter.FaceIdsFaceIds can not contain TargetFaceId.合并人脸时,目标人脸ID中不能包含有源人脸ID。
400InvalidParameter.FaceNameThe specified parameter FaceName is invalid.给人脸命名时,人名不合法。
400InvalidParameter.FaceNameDuplicatedThe Face name provided has already been taken.给人脸命名时,人名重复。
400InvalidParameter.FileIdThe specified parameter FileId is invalid.参数FileId不合法。
400InvalidParameter.Md5The specified parameter Md5 is invalid.参数Md5不合法。
400InvalidParameter.PhotoIdsThe specified parameter PhotoIds is invalid.参数PhotoIds不合法。
400InvalidParameter.PhotoTitleThe specified parameter PhotoTitle is invalid.参数PhotoTitle不合法。
400InvalidParameter.SessionIdThe specified parameter SessionId is invalid.参数SessionId不合法。
400InvalidParameter.SizeThe specified parameter Size is invalid.参数Size不合法。
400InvalidParameter.StateThe specified parameter State is invalid.参数State不合法。
400InvalidParameter.StoreNameThe specified parameter StoreName is invalid.参数StoreName不合法。
400InvalidParameter.TagIdThe specified parameter TagId is invalid.参数TagId不合法。
400InvalidParameter.UsedSessionIdThe specified parameter SessionId is used.参数SessionId已经被使用过,通常是由于重复发起请求导致的。
400InvalidParameter.CursorThe specified parameter Cursor is invalid.参数Cursor不合法。
400InvalidParameter.DirectionThe specified parameter Direction is invalid.参数Direction不合法。
400MissingFileIdFileId is mandatory for this action.缺失必选参数FileId。
400MissingStateState is mandatory for this action.缺失必选参数State。
400InvalidIdentity.ExceedsStoreLimitsExceeds maximum number of photostore allowed per account.超过单个账号允许创建的PhotoStore数量的上限。
403InvalidProtocol.NeedSslYour request is denied as lack of ssl protect.以HTTP方式发起请求将返回这个错误,重新以HTTPS发起请求。
403UnauthorizedAccess.RamNoPermissionNo permission to perform this operation. Please check your policy settings.无权进行指定操作,和RAM授权有关。
404ResourceNotFound.AlbumThe specified Album cannot be found.指定的相簿不存在。
404ResourceNotFound.FaceThe specified Face cannot be found.指定的人脸不存在。
404ResourceNotFound.MomentThe specified Moment cannot be found.指定的时光相册不存在。
404ResourceNotFound.PhotoThe specified Photo cannot be found.指定的照片不存在。
404ResourceNotFound.PhotoStoreThe specified PhotoStore cannot be found.指定的PhotoStore不存在。
500InternalErrorThe operation has failed due to some unknown error, exception or failure服务内部错误,请稍后重试。如果问题依然存在,请记录下响应中的RequestId,然后提交工单联系客服人员进行处理。

展开
收起
云栖大讲堂 2017-10-27 11:53:49 2045 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
Spring Boot2.0实战Redis分布式缓存 立即下载
CUDA MATH API 立即下载
API PLAYBOOK 立即下载