dress code: 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)
code: a set of rules or principles or laws (especially written ones)