Azure AI Content Safety error codes
The content APIs may return the following error codes:
Error Code | Possible reasons | Suggestions |
---|---|---|
InvalidRequestBody | One or more fields in the request body do not match the API definition. | Check the API version you specified in the API call. Check the corresponding API definition for the API version you selected. |
InvalidResourceName | The resource name you specified in the URL does not meet the requirements, like the blocklist name, blocklist term ID, etc. | Check the API version you specified in the API call. Check whether the given name has invalid characters according to the API definition. |
ResourceNotFound | The resource you specified in the URL may not exist, like the blocklist name. | Check the API version you specified in the API call. Double check the existence of the resource specified in the URL. |
InternalError | Some unexpected situations on the server side have been triggered. | You may want to retry a few times after a small period and see it the issue happens again. Contact Azure Support if this issue persists. |
ServerBusy | The server side cannot process the request temporarily. | You may want to retry a few times after a small period and see it the issue happens again. Contact Azure Support if this issue persists. |
TooManyRequests | The current RPS has exceeded the quota for your current SKU. | Check the pricing table to understand the RPS quota. Contact Azure Support if you need more QPS. |
Azure AI Studio error messages
If you encounter the error Your account does not have access to this resource, please contact your resource owner to get access, please ensure your account is assigned the role of Cognitive Services User
for the Content Safety resource or Azure AI Services resource you are using.