I believe the answer is: Codified Law.
The rules that written in codified law are the only rules that could resulted in legal punishment if it being violated.
The rules that exist outside the codified law usually only resulted in negative perception from other members of social group.