The text of the code of canon law can be found here ;
This is the law of the Church dealing mainly with the organization of the Church, the rights and duties of Catholics and the administration of the sacraments. It is as authoritative as you can get, representing what the pope, under whose authority it is proclaimed, is asking Catholics to do.
Strictly speaking, it is not doctrine, so it cannot be called infallible. But there are elements in it that reflect catholic doctrine.
It can change, just like any text of law, and if fact, it has been totally revamped in 1983. See
The consequences of disregarding it are spelled out in the code itself. They can go from nothing to excommunication.
The CCC is an abbreviation for Catechism of the Catholic
Church, which is a compendium of Catholic doctrine approved by the Pope. It can be found at
Does this answer your questions?