ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 36 - MCD - Level 1 discussion

Report
Export

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
Answers
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
Answers
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
Answers
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
Answers
D.
Set a response header with the name Content-Type to a value of application/octet-stream
Suggested 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

asked 18/09/2024
Styliani Simoiridou
43 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first