D-13211 Changes made to return proper return codea based on Identity RC 

D-13211 Changes made to return proper return codea based on Identity RC