documentation update for error function on response