Sources
Code of Canon Law (1983), canons 1246-1247, and Catechism of the Catholic Church, 2181
1246 § 1: “Sunday, on which by apostolic tradition the paschal mystery is celebrated, must be observed in the universal Church as the primordial holy day of obligation. The following days must also be observed: the Nativity of our Lord Jesus Christ, the Epiphany, the Ascension, the Body and Blood of Christ, Holy Mary the Mother of God, her Immaculate Conception, her Assumption, Saint Joseph, Saint Peter and Saint Paul the Apostles, and All Saints.” § 2: the conference of bishops, with the approval of the Apostolic See, can suppress some of them or transfer them to a Sunday. 1247: “On Sundays and other holy days of obligation, the faithful are obliged to participate in the Mass. Moreover, they are to abstain from those works and affairs which hinder the worship to be rendered to God [...].” Catechism, 2181: “For this reason the faithful are obliged to participate in the Eucharist on days of obligation, unless excused for a serious reason [...]. Those who deliberately fail in this obligation commit a grave sin.”
English text from vatican.va (Code of Canon Law, book IV; Catechism, archive/ENG0015).