FORMAT_NOT_ACCEPTABLE

The Accept HTTP header is used to tell the HTTP server, response in which format is acceptable for the HTTP client.

Reason

  • The Accept HTTP header of the API request did not include neither application/json nor */*

Solution

  • Make sure, that the Accept HTTP header contains application/json or */*
  • Remove the Accept HTTP header from your API request

Example

{
    "status": 406,
    "errors": [
        {
            "code": "FORMAT_NOT_ACCEPTABLE",
            "message": "Server is not capable of returning the requested format (only JSON is supported)",
            "more_info": "https://developer.kayako.com/api/v1/reference/errors/FORMAT_NOT_ACCEPTABLE"
        }
    ]
}