Dress code has 2 different meanings across 1 category:
Noun
a set of rules specifying the correct manner of dress while on the premises of the institution (or specifying what manner of dress is prohibited)
A formal specification of acceptable attire for a specific event or location.