Explanation Accept header is a way for a client to specify the media type of the response content it is expecting and Content-type is a way to specify the media type of request being sent from the client to the server. http://www.java-allan dsundry.com/2012/08/accept-header-vs-content-type-header.html#:~:text=Accept%20and%20Content%2Dtype%