BarbieGirls.com has closed down, which is why a code you had no longer works. The site was not drawing enough players to sustain itself and went into bankruptcy.
A handful of games were still playable for a while afterwards, but that was the extent of it. Rumours circulated about a 2012 reopening, though nothing came of them, so treat any similar claim you hear now with scepticism.