check support in the event of returning a json.
Merge pull request #11 from Flubit/return-whole-xml-in-exception

check support in the event of returning a json.