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

+1 vote
24 views
asked Jun 6 in JAVA by admin (8,115 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 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
...