enable xml error message response

return xml error message when Accept:application/xml request received.
default to json response when none specified.

Change-Id: Idd454c5bc76adb583bc0a9afce9f31659e7fe2ac