tta: return meaningful error codrs