AMBARI-3244. Ambari Client improve errors handling. (Andrew Onischuk via mahadev)