CIC
Canon 750 – § 1. Those things are to be believed by divine and catholic faith which are contained in the word of God as it has been written or handed down by tradition, that is, in the single deposit of faith entrusted to the Church, and which are at the same time proposed as divinely revealed either by the solemn Magisterium of the Church, or by its ordinary and universal Magisterium, which in fact is manifested by the common adherence of Christ’s faithful under the guidance of the sacred Magisterium. All are therefore bound to avoid any contrary doctrines.
Canon 750 – § 2. Furthermore, each and everything set forth definitively by the Magisterium of the Church regarding teaching on faith and morals must be firmly accepted and held; namely, those things required for the holy keeping and faithful exposition of the deposit of faith; therefore, anyone who rejects propositions which are to be held definitively sets himself against the teaching of the Catholic Church.
Canon 752 Although not an assent of faith, a religious submission of the intellect and will must be given to a doctrine which the Supreme Pontiff or the college of bishops declares concerning faith or morals when they exercise the authentic magisterium, even if they do not intend to proclaim it by definitive act; therefore, the Christian faithful are to take care to avoid those things which do not agree with it.