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