add methods: getResponse, getError, getErrorCode