There are no invincibility cheat codes in Call of Duty: Modern Warfare 2 (2009) on Xbox 360.
default.xex
Modern Warfare 2 Remastered (2020, PS4/Xbox One/PC) also has no cheats. Cheats = ban.