If you bought the game used, that would explain the missing code, since it normally comes with a new copy. The Elite Pass is essentially an online pass, a way for publishers to earn a little something from used-game sales, which they otherwise see nothing from.
To get it, search for "Elite Pass" on the Xbox Marketplace or PlayStation Network store. It's usually inexpensive, around five dollars or so, and once you've got it you'll be able to jump into online multiplayer and the Swarm mode.