Invalid Content-Type

The Content-Type header is invalid or unsupported.

  • Error type: bloomreach/datahub/item-collections/records/content-type-invalid
  • HTTP status code: 415
  • Class: InvalidContentType
  • Context fields in error response:
    • content_type — string
    • allowed_content_types — array of strings

Error response example

{
  "title": "Invalid Content-Type",
  "type": "bloomreach/datahub/item-collections/records/content-type-invalid",
  "status": 415,
  "detail": "The Content-Type header value 'text/plain' is invalid. Supported content types are: application/json-patch+jsonlines, application/json, application/json-patch+json.",
  "context": {
    "content_type": "text/plain",
    "allowed_content_types": [
      "application/json-patch+jsonlines",
      "application/json",
      "application/json-patch+json"
    ]
  }
}

Troubleshooting

Allowed values:

  • application/json-patch+jsonlines
  • application/json
  • application/json-patch+json