ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 58 - MCD - Level 1 discussion

Report
Export

Refer to the exhibit.

What should be changed to fix the 415 error?

A.
set the response Content-Type header to text/plain
Answers
A.
set the response Content-Type header to text/plain
B.
set the response Content-Type header to application/json
Answers
B.
set the response Content-Type header to application/json
C.
Set the request Content-Type header to application/] son
Answers
C.
Set the request Content-Type header to application/] son
D.
set the request Content-Type header to text/plain
Answers
D.
set the request Content-Type header to text/plain
Suggested 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

asked 18/09/2024
Rudy Raijmakers
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first