What is the difference between codes and standards?

An OSHA code is a regulation and is enforceable. ANSI and other Standards are voluntary unless recognized and cited directly by OSHA.

OSHA Codes vs ANSI Standards