xml mapping for error case
buffer response in RestTemplate for multiple reads for error check
added error response handling