Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Translator Text API v3.0 - Possible Error Codes [closed]

I'm looking for all possible error codes of the Azure Translator Text API 3.0.

I just found one page that describes the format of an error: https://learn.microsoft.com/en-us/azure/cognitive-services/translator/reference/v3-0-reference#errors

The example is an errorcode: 403000 I recieved another error code and now I need all possible error codes to handle it correctly in my application.

Someone know how to figure out all the possible error codes? Best regards

like image 965
I WANT AN ELEPHANT Avatar asked Jun 03 '26 15:06

I WANT AN ELEPHANT


1 Answers

There's a table of response codes under each of the api's. e.g for Translate

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.
like image 180
Fai Avatar answered Jun 05 '26 04:06

Fai



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!