Replaced hard coded codes with returnCode.CODE.

Replaced hard coded codes with returnCode.CODE.