0
votes

I have written a Spring MVC application which displays a model in XML format.Its building well.But its giving me a 406 error which looks something like this

HTTP Status 406 -


type Status report

message

description The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers ().


Apache Tomcat/6.0.35

Please advice thanks in advance

1
I know this was a while ago but can you add the method signature, including annotations, to your question? - Paul

1 Answers

0
votes

You are probably missing the Accept header in your request:

Accept: application/xml