update response error checking