常见的 API 响应代码及其含义Common API response codes and their meaning

创作终结点 API 返回 HTTP 响应代码。The authoring and endpoint APIs return HTTP response codes. 响应消息包含特定于某个请求的信息,而 HTTP 响应状态代码是通用的。While response messages include information specific to a request, the HTTP response status code is general.

常见状态代码Common status codes

下表列出了创作终结点 API 最常见的一些 HTTP 响应状态代码:The following table lists some of the most common HTTP response status codes for the authoring and endpoint APIs:

代码Code APIAPI 说明Explanation
400400 创作、终结点Authoring, Endpoint 请求的参数不正确,这意味着所需的参数缺失、格式错误或太大request's parameters are incorrect meaning the required parameters are missing, malformed, or too large
400400 创作、终结点Authoring, Endpoint 请求的正文不正确,这意味着 JSON 缺失、格式错误或太大request's body is incorrect meaning the JSON is missing, malformed, or too large
401401 创作Authoring 使用的是终结点订阅密钥,而不是创作密钥used endpoint subscription key, instead of authoring key
401401 创作、终结点Authoring, Endpoint 密钥无效、格式错误或为空invalid, malformed, or empty key
401401 创作、终结点Authoring, Endpoint 密钥与区域不匹配key doesn't match region
401401 创作Authoring 你不是所有者或协作者you are not the owner or collaborator
401401 创作Authoring API 调用的顺序无效invalid order of API calls
403403 创作、终结点Authoring, Endpoint 超出了每月密钥配额总限制total monthly key quota limit exceeded
409409 端点Endpoint 应用程序仍在加载application is still loading
410410 端点Endpoint 需要重新训练和重新发布应用程序application needs to be retrained and republished
414414 端点Endpoint 查询超过最大字符限制query exceeds maximum character limit
429429 创作、终结点Authoring, Endpoint 超出速率限制(请求数/秒)Rate limit is exceeded (requests/second)

后续步骤Next steps