* added processing for history error response and calling failure block