Handle {error, malformed_xml} as 400 Bad Request with bad XML