Help Center/ Content Moderation/ FAQs/ Error Codes/ What Should I Do If Error Code "ModelArts.4204" Is Displayed During Service Calling?
Updated on 2022-12-08 GMT+08:00

What Should I Do If Error Code "ModelArts.4204" Is Displayed During Service Calling?

If an error occurs during API calling, the error code and error information in the returned message body are as follows:
{
    "error_code":"ModelArts.4204",
    "error_msg":"Request api error! The API is not subscribed."
}

The error message indicates that you have not subscribed to Content Moderation in this region. For details about how to subscribe to the service, see Subscribe to a Service.

Check the region where you have enabled the service. For example, if you have enabled Text Moderation in the CN North-Beijing4 region, but you are calling the API in the CN East-Shanghai1 region, this error code will be displayed.

For details about other error codes and error information, see Error Codes. If you cannot locate the error cause, contact HUAWEI CLOUD customer service and provide the error code to help you rectify the fault as soon as possible.