gpt4 book ai didi

Azure 文本翻译 API v3.0 - 可能的错误代码

转载 作者:行者123 更新时间:2023-12-04 17:45:01 26 4
gpt4 key购买 nike

我正在查找 Azure Translator Text API 3.0 的所有可能的错误代码。

我刚刚找到一页描述了错误的格式: https://learn.microsoft.com/en-us/azure/cognitive-services/translator/reference/v3-0-reference#errors

示例是错误代码:403000我收到了另一个错误代码,现在我需要所有可能的错误代码才能在我的应用程序中正确处理它。

有人知道如何找出所有可能的错误代码吗?最好的问候

最佳答案

每个 api 下都有一个响应代码表。例如翻译

https://learn.microsoft.com/en-us/azure/cognitive-services/translator/reference/v3-0-translate?tabs=curl

Response status codes

The following are the possible HTTP status codes that a request returns.

Status Code Description

  • 200 Success.
  • 400 One of the query parameters is missing or not valid. Correct request parameters before retrying.
  • 401 The request could not be authenticated. Check that credentials are specified and valid.
  • 403 The request is not authorized. Check the details error message. This often indicates that all free translations provided with a trial subscription have been used up.
  • 429 The caller is sending too many requests.
  • 500 An unexpected error occurred. If the error persists, report it with: date and time of the failure, request identifier from response
    header X-RequestId, and client identifier from request header
    X-ClientTraceId.
  • 503 Server temporarily unavailable. Retry the request. If the error persists, report it with: date and time of the failure, request
    identifier from response header X-RequestId, and client identifier
    from request header X-ClientTraceId.

关于Azure 文本翻译 API v3.0 - 可能的错误代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52467955/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com