The first prompt style is I think a way society towards drifts incidentally towards a less interesting one, with less variety in solutions. The second one i think allows people to still exercise their potential to try a variety of things and keep that variety.
And if the LLM gets that wrong? It's his job to know the codes or how to go to a reliable resource to find out the correct codes.