Warning Codes
This page lists the warning codes that Haven OnDemand can return.

Warning Codes

Haven OnDemand returns warnings when an action is successfully completed, but some parts of the operation might not have run as intended. In this case, the API returns a valid response and HTTP status code, but it returns an additional warnings array attached to the response.

This page lists the warning codes that Haven OnDemand can return.

Warning Code Description
General Warnings
20000 The input file is empty.
Connector Warnings
30000 The request includes onsite flavor connectors, which do not have connector history. This warning applies only for the Connector History API.
Query Manipulation Warnings
40001 Query manipulation promotion rules have been restricted. See Query Manipulation Limits.
40002 Query manipulation promotion documents have been restricted. See Query Manipulation Limits.
40003 An error occurred while processing query manipulation promotion rules. This warning might occur for promotions requesting data from text indexes. See Query Manipulation.
40004 An invalid query manipulation rule was activated.
40005 No update of the query profile.

Example

{
  "document": [
    {
      "reference": "empty.txt",
      "doc_iod_reference": "c7be17bd2e1452e21b244c02cf543842",
      "content_type": [
        "application/octet-stream"
      ],
      "file_size": [
        0
      ],
      "import_empty": [
        "true"
      ],
      "import_error_code": [
        "10"
      ],
      "import_error_description": [
        "Failed to open KV stream: Autodetect error"
      ]
    }
  ],
  "md5sum": [
    "d41d8cd98f00b204e9800998ecf8427e"
  ],
  "warnings": [
    {
      "code": 20000,
      "details": {
        "reason": "File is empty.",
        "reference": "empty.txt"
      }
    }
  ]
}

In this example, an empty text file was passed to the Extract Text API. The API returns a response, along with a "warnings" property. The warnings array contains the empty file warning, with code 20000.