TRQ-2410: returns the first one err code