What should be changed to fix the 415 error?
Refer to the exhibit.
What should be changed to fix the 415 error?
A . 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
Answer: C
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 https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/415
Latest MuleSoft Developer I Dumps Valid Version with 235 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund