> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apistable.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 错误与重试

> HTTP 状态、业务错误码与供应商错误。

> 能力按服务端配置逐项启用。未启用操作返回 503 且不创建任务；音乐积分扣除当前未启用。

## 错误响应

接口调用失败时 HTTP 使用 4xx/5xx。body code 固定：40001 无效 JSON、40002 无效参数、40003 不支持参数、40101 无效或撤销密钥、40201 积分不足、40401未知模型或本账户资源不存在、40402任务不存在、40901资源供应商账户不匹配、41001资源过期、41301请求过大、42201未开放的组合、42901限流、50201供应商返回结构异常、50301服务或供应商不可用。HTTP状态为业务码的前三位。

查询失败的生成任务仍返回 HTTP 200/code 200，data.status=failed，供应商错误在 data.message。任务提交无客户端幂等保证，不要在网络超时后盲目重发 POST。

```json theme={null}
{
  "code": 40003,
  "msg": "fallback is not supported by this model",
  "data": null
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.