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.