错误码表
智能云相册返回标准的HTTP状态码来表示响应状态。
- 200: 表示请求被成功接收并处理。某些批量处理接口需要根据响应的内容来判断请求中每个具体项是否成功处理。
- 400:参数不对。通常以Missing开头的Code表示缺失了必选参数。以InvalidParameter开通的Code表示参数不合法。
- 403:Code为UnauthorizedAccess表示无权进行指定操作。通常是RAM中的Policy设置的问题,或者是存储配额不足。
- 5xx:表示服务端暂时不能处理请求。
以下为详细的错误码信息:
HTTP状态码 | 错误代码(Code) | 详细信息(Message) | 描述 |
---|---|---|---|
200 | Success | success | 请求成功。 |
400 | InvalidParameter.AlbumId | SourceAlbumId can not be the same as TargetAlbumId. | 在相簿间移动照片时,源和目标相簿不能相同。 |
400 | InvalidParameter.AlbumName | The specified parameter AlbumName is invalid. | 相簿的名称不合法。 |
400 | InvalidParameter.AlbumNameDuplicated | The Album name provided has already been taken. | 新建或者重命名相簿时,相册重名。 |
400 | InvalidParameter.FaceId | SourceFaceId can not be the same as TargetFaceId. | 在人脸间移动照片时,源和目标的人脸不能相同。 |
400 | InvalidParameter.FaceIds | FaceIds can not contain TargetFaceId. | 合并人脸时,目标人脸ID中不能包含有源人脸ID。 |
400 | InvalidParameter.FaceName | The specified parameter FaceName is invalid. | 给人脸命名时,人名不合法。 |
400 | InvalidParameter.FaceNameDuplicated | The Face name provided has already been taken. | 给人脸命名时,人名重复。 |
400 | InvalidParameter.FileId | The specified parameter FileId is invalid. | 参数FileId不合法。 |
400 | InvalidParameter.Md5 | The specified parameter Md5 is invalid. | 参数Md5不合法。 |
400 | InvalidParameter.PhotoIds | The specified parameter PhotoIds is invalid. | 参数PhotoIds不合法。 |
400 | InvalidParameter.PhotoTitle | The specified parameter PhotoTitle is invalid. | 参数PhotoTitle不合法。 |
400 | InvalidParameter.SessionId | The specified parameter SessionId is invalid. | 参数SessionId不合法。 |
400 | InvalidParameter.Size | The specified parameter Size is invalid. | 参数Size不合法。 |
400 | InvalidParameter.State | The specified parameter State is invalid. | 参数State不合法。 |
400 | InvalidParameter.StoreName | The specified parameter StoreName is invalid. | 参数StoreName不合法。 |
400 | InvalidParameter.TagId | The specified parameter TagId is invalid. | 参数TagId不合法。 |
400 | InvalidParameter.UsedSessionId | The specified parameter SessionId is used. | 参数SessionId已经被使用过,通常是由于重复发起请求导致的。 |
400 | InvalidParameter.Cursor | The specified parameter Cursor is invalid. | 参数Cursor不合法。 |
400 | InvalidParameter.Direction | The specified parameter Direction is invalid. | 参数Direction不合法。 |
400 | MissingFileId | FileId is mandatory for this action. | 缺失必选参数FileId。 |
400 | MissingState | State is mandatory for this action. | 缺失必选参数State。 |
400 | InvalidIdentity.ExceedsStoreLimits | Exceeds maximum number of photostore allowed per account. | 超过单个账号允许创建的PhotoStore数量的上限。 |
403 | InvalidProtocol.NeedSsl | Your request is denied as lack of ssl protect. | 以HTTP方式发起请求将返回这个错误,重新以HTTPS发起请求。 |
403 | UnauthorizedAccess.RamNoPermission | No permission to perform this operation. Please check your policy settings. | 无权进行指定操作,和RAM授权有关。 |
403 | UnauthorizedAccess.TrashQuotaExceed | Exceeds the trash space quota. | 回收站空间不足。 |
403 | UnauthorizedAccess.QuotaExceed | Exceeds the user space quota. | 存储空间不足。 |
404 | ResourceNotFound.Album | The specified Album cannot be found. | 指定的相簿不存在。 |
404 | ResourceNotFound.Face | The specified Face cannot be found. | 指定的人脸不存在。 |
404 | ResourceNotFound.Moment | The specified Moment cannot be found. | 指定的时光相册不存在。 |
404 | ResourceNotFound.Photo | The specified Photo cannot be found. | 指定的照片不存在。 |
404 | ResourceNotFound.PhotoStore | The specified PhotoStore cannot be found. | 指定的PhotoStore不存在。 |
500 | InternalError | The operation has failed due to some unknown error, exception or failure | 服务内部错误,请稍后重试。如果问题依然存在,请记录下响应中的RequestId,然后提交工单联系客服人员进行处理。 |
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。
评论