To minimize the traffic sent to the stats endpoint we should track errors only once after request is done, not on every error occurence. Bug: T212970 Change-Id: I64f101159aa1f2179e612effa850851fffcf39c6