You need to try the code eventhough it is not correct. And then it will ask for PUK code. Don't worry, the code should be written on the card which was attached to your
sim card when you first got it. Or else call your service provider customer service. They will ask your personal details and then give the PUK code.