Born in Barcelona, Catalonia, Codina arrived at Real Madrid in 2002 at the age of 20, having been grown in the youth system of local RCD Espanyol.
After the departure of Carlos Sánchez and David Cobeño, he became first-choice with the reserve side – Antonio Adán was the backup and Kiko Casilla third-choice, as he eventually gained Castilla's captaincy.
As they had already been crowned league champions, he made his first and sole official appearance for the club in the last match of the campaign, playing the full 90 minutes in a 5–2 home win against Levante UD on 18 May 2008.
[2] On 2 July 2009, Codina moved to fellow La Liga side Getafe CF, also in Madrid, on a free transfer, signing a three-year contract and reuniting with former Castilla manager Míchel.
[6] On 7 January 2016, however, after failing to appear in any competitive games, he joined fellow First Division team Pafos FC on a six-month loan.