MCQs>IT & Programming>RESTful Services>Given a REST API that is capable of responding only with JSON, what is the appropriate way to respond to a request with header `Accept: application/xml; charset=utf-8`?
RESTful Services MCQs
Given a REST API that is capable of responding only with JSON, what is the appropriate way to respond to a request with header `Accept: application/xml; charset=utf-8`?
Answer
Correct Answer: Respond with `406 Not Acceptable` error or respond successfully with JSON
Explanation:
Note: This Question is unanswered, help us to find answer for this one