Brian Cody praised his heroic side, playing with a man down after Richie Hogan was given a straight red card in an "unexpected decision".