406 Not Acceptable
The resource identified by the request is only capable of generating response entities which have content characteristics not
acceptable according to the accept headers sent in the request.
406 happens when the server cannot respond with the accept-header specified in the request.
In your case it seems application/json for the response may not be acceptable to the server.
You don't have remove the header, you will have to supply a different one which is acceptable to the server. en.wikipedia.org/wiki/
if i remove the header i am getting an error........