/**
  * Get the error msg of the last HTTP call
  *
  * @return string
  */
 public function getErrorMsg()
 {
     if ($invalidInput = $this->getInputFilter()->getInvalidInput()) {
         return json_encode($this->getInputFilter()->getMessages());
     }
     if ($invalidInput = $this->getFiltersInputFilter()->getInvalidInput()) {
         return json_encode($this->getFiltersInputFilter()->getMessages());
     }
     $response = $this->getHttpClient()->getResponse();
     $reasonPhrase = $response->getReasonPhrase();
     try {
         $error = Json::decode($response->getBody());
         if (isset($error->ErrorInfo)) {
             $reasonPhrase .= ' : ' . $error->ErrorInfo;
         }
     } catch (\Exception $e) {
     }
     if ($reasonPhrase) {
         return $reasonPhrase;
     }
     if (!$this->api->isSuccess()) {
         return $this->api->getErrorMsg();
     }
     return $this->api->getErrorMsg();
 }
 /**
  * Get the error msg of the last HTTP call
  *
  * @return string
  */
 public function getErrorMsg()
 {
     return $this->api->getErrorMsg();
 }