MCD-LEVEL-1 · Question #83
The web client sends a POST request to the ACME Order API with an XML payload. An error is returned. What should be changed in the request so that a success response code is returned to the web…
The correct answer is B. Set a request header with the name Content-Type to a value of application/xml. 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…
Question
The web client sends a POST request to the ACME Order API with an XML payload. An error is returned. What should be changed in the request so that a success response code is returned to the web client?
Exhibit
Options
- ASet a request header with the name Content-Type to a value of applicatron/octet-stream
- BSet a request header with the name Content-Type to a value of application/xml
- CSet a response header with the name Content-Type to a value of applkation/xml
- DSet a response header with the name Content-Type to a value of application/octet-stream
How the community answered
(23 responses)- B87% (20)
- C9% (2)
- D4% (1)
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. As per RAML input is expected in application/xml. Hence correct answer is Set a request header with the name Content-Type to a
Topics
Community Discussion
No community discussion yet for this question.
