What is 406-Not Acceptable Response in HTTP? - Stack Overflow 55 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
Spring JSON request getting 406 (not Acceptable) - Stack Overflow 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 So, your request accept header is application json and your controller is not able to return that This happens when the correct HTTPMessageConverter can not be found to satisfy the
web services - HTTP 406 and 415 error codes - Stack Overflow 406 is used when the client requests a response in an unsupported content type (in your case, anything other than JSON) using the Accept header 415 on the other hand is used when the client POSTs or PUTs data in an unsupported content type In a nutshell: use 406 if can't output in the expected format and use 415 if you don't support the input format See RFC 2616 for their definitions: 406