replaced result code constants in ResultCode enum