Changed error object to include xml response and headers
merge