Fixed result code -> error mapping