#pw+277055607522256+1# If code error with this one, I suggest trying the other one again and making sure every digit is correct before pressing the final # of the code.
Put another sim in the phone other than T-Mobile. Looks like it's already unlocked. It will continue to show code error if it is.
Is it possible that the phone is locked to someone else? If it is definately T-Mobile, the code #7 should do it. If not, I don't have a clue what's going on with this one.