HTTP Status 415 - request entity is in a format not supported?

+1 vote
65 views
asked Jun 6, 2017 in JAVA by admin (8,135 points)
Hi

   am getting the below error while hit the POST services

HTTP Status 415 - request entity is in a format not supported?

1 Answer

0 votes
answered Jun 6, 2017 by anonymous
HTTP 415 means that the server does not understand the media format of the request. In your controller you are specifying it accepts JSON,

  Set the header value like below

Content-Type: application/json
...