whole_func_string: function checkError(resp) {
      var value = this.config.successValue;
      if (typeof value === 'number') {
        return resp.httpResponse.statusCode === value;
      } else {
        return resp.error && resp.error.code === value;
      }
    }
func_code_string: function checkError(resp) {
      var value = this.config.successValue;
      if (typeof value === 'number') {
        return resp.httpResponse.statusCode === value;
      } else {
        return resp.error && resp.error.code === value;
      }
    }
func_documentation_string: Checks if the terminal expected error state has been met
  @return [Boolean]