Added some exception try/catch because getError is undefined.

_responseCode and _responseMsg change to responseCode and responseMsg (and created in added as private parameters)