YOURCODENUMBER for Nokia N8 is 138987524506219
YOURCODENUMBER for Nokia 500 is 196013731849524
Method 1. Enter respective YOURCODENUMBER at prompt with a SIM other than your carrier's in your phone.
Method 2. With no SIM in phone enter #pw+YOURCODENUMBER+1#. To get + press '*' key 2 times, for P press '*' key 3 times. For W press '*' key 4 times.
If you fail first time, try #pw+YOURCODENUMBER+7#. If you get an error 3 times then you can hardlock your phone, so after 2 errors stop and make sure you're doing things right. Make sure you gave me the correct IMEI and that you entered the correct code I gave for the correct method.