Refer to the exhibits.
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?
A . Set a request header with the name Content-Type to a value of applicatron/octet-stream
B . Set a request header with the name Content-Type to a value of application/xml
C . Set a response header with the name Content-Type to a value of applkation/xml
D . Set a response header with the name Content-Type to a value of application/octet-stream
Answer: B
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
Latest MCPA-Level 1 exam Dumps Valid Version with 58 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund