I'm assuming you have sprint...
Your unlock code is actually specific to your device.
Download and run this program ON YOUR PHONE:
ftp://up.ppcgeeks.com/Tools/GetSPC.zip
Then, enter your HEX ESN [found behind the battery, or on the box of the phone] including all capital letters. Press generate, write down the number, and enter it when ##778# asks for it