black code (n.) Look up black code at Dictionary.com
local or state legal restrictions on black persons, free or slave; attested by 1840, American English, though the thing itself is much older.