Reading HTTP response status and error messages

With every HTTP request, the Incremental Feed API returns a response status. This topic lists and describes some status codes and error messages that Sitecore Discover returns in response to POST requests you send to the Incremental Feed API. You can also refer to the complete list of HTTP response codes that Discover can return.

This topic also provides a detailed description of the error object.

Response status

The following table lists some of the response codes that the Incremental Feed API returns.

HTTP statusResponse objectDescription
200 OkEMPTYIndicates that the request was successful. The product data is updated.
400 Bad RequestErrorIndicates the data given in the POST request failed validation. Inspect the response body for details. Fix the error and retry.
500 Internal ErrorEMPTYThe 500 Internal Server Error indicates that the server encountered an unexpected condition that prevented it from fulfilling the request. You can try sending the request again.

The Error object format in Incremental Feed API response

The following shows an example of an error response that Sitecore Discover returns when a POST request to the Incremental Feed API fails:

{
  "message": "Invalid value type for provided 'attribute",
  "code": "INVALID_ATTRIBUTE_TYPE",
  "type" : "BadRequest",
  "data": {
    "attribute": "final_price",
    "expected_type": "float",
    "product_index": 1,
    "value": false
  }
  {
  "request-id": "0715ad4e-b68f-4a32-8002-d34d77fc292a",
  "error-id": "ec6a5a22-0302-4e91-b086-413e14f3efe0",
}

The error object keys are:

KeyTypeDescription
messagestringDescriptive message explaining the error.
codestringOne of the error code values.
dataobjectDetailed information specific to the error that is being reported to help understand the exact error. The object attributes depend on the type of error.

Error codes in failed calls to the Incremental Feed API

The following table lists and describes error codes that the Incremental Feed API can return when a POST request fails:

Error codeDescription
EMPTY_PRODUCTSThe request does not contain products to update.
EMPTY_SKUNo SKU is specified for the product.
NO_INC_FIELDSThe product does not specify attributes to update.
EMPTY_STORE_IDA store-specific attribute is specified, but no store ID is provided.
EMPTY_STORE_GROUP_IDA store ID is provided, but a store group is missing.
NO_INC_FIELDS_FOR_STOREThe product does not contain attributes to update the given store.
INVALID_DOMAINThe domain provided is not valid.
INCREMENTAL_FEED_NOT_ENABLEDThe Incremental Feed service is not enabled for the domain.
DOMAIN_NOT_ACTIVEThe domain provided is not active.
ATTRIBUTE_NOT_FOUNDThe provided attribute is not configured in the Customer Engagement Console (CEC).
INVALID_ATTRIBUTE_TYPEInvalid type for provided attribute value.
ATTRIBUTE_NOT_MARKED_AS_INCREMENTALThe provided attribute is not configured as eligible for updates using the Incremental Feed API (in the CEC).
EMPTY_LOCALE_LANGUAGEThe locale_language attribute is missing. This attribute is required when passing the locale_country property.
NOT_SUPPORTED_LOCALEThe domain is not set up to support the provided locale.
If you have suggestions for improving this article, let us know!