set the response Content-Type header to text/plain
B.
set the response Content-Type header to application/json
C.
Set the request Content-Type header to application/] son
D.
set the request Content-Type header to text/plain
The Answer Is:
C
This question includes an explanation.
Explanation:
The HTTP 415 Unsupported Media Type client error response code indicates that the server refuses to accept the request because the payload format is in an unsupported format. The format problem might be due to the request's indicated Content-Type or Content-Encoding , or as a result of inspecting the data directly. In this case as per RAML specification data is expected in application/json and in request Content-Type is set as "text/plain" which is incorrect. Hence solution is set the request Content-Type header to application/json