What book gives the definition of a heretic as anyone that does not follow the Catholic Church or the orthodox holy faith?
The Codex Justinianus (1:5:12) defines "everyone who is not devoted to the Catholic Church and to our Orthodox holy Faith" a heretic.