Invalid Content-Encoding

The Content-Encoding header is invalid or unsupported.

  • Error type: bloomreach/datahub/item-collections/records/content-encoding-invalid
  • HTTP status code: 400
  • Class: InvalidContentEncoding
  • Context fields in error response:
    • content_encoding — string
    • allowed_content_encodings — array of strings

Error response example

{
  "title": "Invalid Content-Encoding",
  "type": "bloomreach/datahub/item-collections/records/content-encoding-invalid",
  "status": 400,
  "detail": "The Content-Encoding header value 'deflate' is invalid. Supported content encodings are: gzip or not set.",
  "context": {
    "content_encoding": "deflate",
    "allowed_content_encodings": ["gzip"]
  }
}