When an OpenSearch API call fails, the response contains a status field set to "FAIL" and an errors array. Each item in the array includes a numeric code and a message describing the issue. A successful call returns {"status":"OK"}.
Sample error response:
{
"status": "FAIL",
"errors": [
{"code": 2001, "message": "该索引不存在"}
]
}To resolve the error, look up the code value in Error codes and follow the steps listed for that code. If the error persists after following the resolution steps, contact technical support.
该文章对您有帮助吗?