Error Codes
The table below shows the error codes you might see when calling a model service deployed with MaaS.
HTTP Status Code |
Error Code |
Error Message |
Description |
---|---|---|---|
400 |
ModelArts.81001 |
Invalid request body. |
Parsing the body failed, for example, JSON formatting failed or empty model parameters. |
400 |
ModelArts.81002 |
Failed to get the authorization header. |
The Authorization parameter in the request header is either empty or lacks the Bearer prefix. |
401 |
ModelArts.81003 |
Invalid authorization header. |
Parsing the API key failed. |
401 |
ModelArts.81004 |
Invalid request because you do not have access to it. |
The built-in service is not enabled. |
401 |
ModelArts.81005 |
The free quota has been used up. |
Free quota has been used up. |
401 |
ModelArts.81006 |
The resource is frozen. |
The resident model has been frozen. |
401 |
ModelArts.81109 |
No permission query task %s |
No permission to query the video generation task. |
403 |
ModelArts.81011 |
May contain senstive..... |
Input or non-streaming output risk control. |
404 |
ModelArts.81009 |
Invalid model. |
The model specified by the model parameter in the request body is not found. |
404 |
ModelArts.81108 |
Task %s does not exist |
Task not found. |
429 |
ModelArts.81101 |
Too many requests, exceeded rate limit is {rpm} times per minute. |
RPM traffic control verification failed. |
429 |
ModelArts.81103 |
Too many requests. exceeded rate limit is %s tokens per minute. |
TPM traffic control verification failed. |
403 |
ModelArts.81109 |
No permission query task %s |
No permission to query the task. |
5XX |
APIG.0203 |
"error_msg":"Backend timeout",error_code:APIG.0203 |
The service response times out. |
400 |
"object": "error" |
"object": "error", "message": "[{'type': 'missing', 'loc': ('body', 'model'), 'msg': 'Field required', 'input': {'max_tokens': 20, 'messages': [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Hello'}], 'stream': False, 'temperature': 1.0}}]", "type": "BadRequestError", "param": null, "code": 400 |
Mandatory parameters are missing in the request body. |
400 |
"object": "error" |
"object": "error", "message": "[{'type': 'extra_forbidden', 'loc': ('body', 'test'), 'msg': 'Extra inputs are not permitted', 'input': 15}]", "type": "BadRequestError", "param": null, "code": 400 |
The request body has extra, unsupported parameters. |
400 |
"object": "error" |
"object": "error", "message": "[{'type': 'json_invalid', 'loc': ('body', 273), 'msg': 'JSON decode error', 'input': {}, 'ctx': {'error': \"Expecting ',' delimiter\"}}]", "type": "BadRequestError", "param": null, "code": 400 |
The request body's JSON format is wrong. |
400 |
"object": "error" |
"object": "error", "message": "[{'type': 'missing', 'loc': ('body',), 'msg': 'Field required', 'input': None}]", "type": "BadRequestError", "param": null, "code": 400 |
No request body. |
400 |
"object": "error" |
"object": "error", "message": "This model's maximum context length is 4096 tokens. However, you requested 8242 tokens (20 in the messages, 8222 in the completion). Please reduce the length of the messages or completion.", "type": "BadRequestError", "param": null, "code": 400 |
The max_tokens value exceeds the model's upper limit. |
404 |
"object": "error" |
"object": "error", "message": "The model `DeepSeek-R1` does not exist.", "type": "NotFoundError", "param": null, "code": 404 |
The model parameter in the request body is incorrect. |
404 |
APIG.0101 |
"error_msg": "The API does not exist or has not been published in the environment", "error_code": "APIG.0101", "request_id": "d0ddda0fcdd0cc23a1588fafe426****" |
The API URL is wrong or does not exist. |
405 |
N/A |
"detail":"Method Not Allowed" |
The request method is incorrect. |
429 |
APIG.0308 |
"error_msg": "The throttling threshold has been reached: policy ip over ratelimit,limit:5,time:1 minute" |
The API Gateway traffic limit is reached. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot