Changing errors management and returning value to follow the third strategy