错误返回
更新时间:2024-08-30
错误返回
当用户访问API出现错误时,会返回给用户相应的错误码和错误信息,便于定位问题,并做出适当的处理;请求发生错误时通过Response Body返回详细错误信息,遵循如下格式:
参数名 | 类型 | 说明 |
---|---|---|
requestId | String | 导致该错误的requestId |
code | String | 字符串,用于表示具体错误类型 |
message | String | 有关该错误的详细说明 |
示例:
{
"requestId": "7a64abd6-5fd8-4f42-a795-bb51c8cf5c6a",
"code": "VodExceptions.NoSuchMedia",
"message": "no such media: mda-jdekywp8pek91e0n"
}
公共错误码
错误码 | 错误消息 | HTTP状态码 | 描述 |
---|---|---|---|
AccessDenied | access denied | 403 Forbidden | 无权限访问对应的资源 |
InvalidParameter | invalid parameter | 400 Bad Request | 请求参数有误 |
Vod错误返回码
错误码 | 错误消息 | HTTP状态码 | 描述 |
---|---|---|---|
MediaNotFound | Media not found with mda-jdekywp8pek91e0n | 404 Not Found | 没有找到对应的媒资 |
IllegalMediaSessionKey | Media session key zmskjkjiwerjkio3oodk is illegal | 400 Bad Request | 非法的sessionKey |
MediaSourceFileNotFound | Media source file not found with session key : zmskjkjiwerjkio3oodk | 404 Not Found | 媒资文件未找到 |
MultipartEtagsMissing | multipart etags missing for media ljklsjdijlns | 400 Bad Request | 缺少分片上传etag标识 |
MediaProcessingNow | Media mda-jdekywp8pek91e0n%s is processing now | 400 Bad Request | 媒资已经在处理中 |
MediaBanned | Media mda-jdekywp8pek91e0n is banned | 403 FORBIDDEN | 媒资被封禁 |
MediaBanStatusError | media status is NORMAL | 403 FORBIDDEN | 媒资封禁状态错误 |
NotificationNotFound | Notification test not found | 404 Not Found | 通知未找到 |
NotificationAlreadyExists | Notification test already exists | 400 Bad Request | 通知已存在 |
UrlNotAllowed | Not allowed callback url www.baidu.com | 403 FORBIDDEN | 不合法的通知地址 |
CannotDeleteNotification | Cannot delete this notification which is used by 1 workflows: kjllsjdifjls | 400 Bad Request | 不能删除通知,已经在工作流中使用 |
VodPresetNotFound | VodPreset test not found | 404 Not Found | 没有找到对应的模板 |
VodPresetAlreadyExists | Preset test already exists | 400 Bad Request | 模板已经存在 |
UnsupportedVodPresetType | Unsupported VodPreset type | 400 Bad Request | 改类型模板不支持当前操作 |
CannotModifyServiceType | Cannot modify service type | 400 Bad Request | 改类型模板不能修改 |
CannotUpdatePreset | Cannot update this preset | 400 Bad Request | 无法更新该模板 |
CannotDeletePreset | Cannot delete this preset which is used by 1 workflows:sdfsd | 400 Bad Request | 无法删除该模板 |
InvalidMetric | Invalid metric : name | 400 Bad Request | 无效的指标 |
DimensionMissing | Dimension is missing, please use domain/appId/userId for statistic query | 400 Bad Request | 缺少纬度 |
InvalidQueryTime | start time must not be earlier than 1 year ago/end time minus start time must be greater than or equal to 5 minutes/end time minus start time must be less than 3 months | 400 Bad Request | 无效的查询时间 |
MediaTaskNotFound | MediaTask tsk-serjojoijiowe not found | 404 Not Found | 任务id未找到 |
MediaTaskCannotRerun | MediaTask tsk-serjojoijiowe cannot rerun, status is running | 400 Bad Request | 无法重新运行该任务 |
UserNotFound | User with accountId ebcd5jhuouwou09890 not found | 404 Not Found | 用户未找到 |
SubUserNoPermission | Sub user has not FullControl permission : ebcd5jhuouwou09890 | 403 FORBIDDEN | 子用户无权限 |
UserAlreadyExist | User : ebcd5jhuouwou09890 already exist in vod | 400 Bad Request | 用户已存在 |
UserChargeTypeNotApplicable | User charge type : MonthOutBytes unavailable. If there is any demand, please submit a ticket | 400 Bad Request | 扣费类型异常 |
NoSuchWorkflow | No such workflow : test | 404 Not Found | 未找到工作流 |
NodeTooMany | workflow nodes size is too many, max size is 20 | 400 Bad Request | 工作流节点超出上限 |
ExpressionInvalid | node : zhuanma transcoding config can not deserialize by TranscodingInput class | 400 Bad Request | 节点配置错误 |
ConfigInvalid | workflow config is invalid | 400 Bad Request | 工作流配置错误 |
DynamicParamsInvalid | workflow dynamic params is invalid | 400 Bad Request | 非法动态参数 |