In chronological order:
St. Cyprian, 3rd century: “Where Peter is, there is the Church”, repeated by St. Ambrose and St. Boniface. Confirmed by Pope Benedict XV in the Encyclical In Hac Tanta.
Saint Jerome, 4th century: “The welfare of the Church depends on the dignity of the papacy. If we do not give the pope sovereign and independent power, there will be as many schisms in the Church as there are priests.” Confirmed by Pope Benedict XV in the Encyclical In Hac Tanta.
Pope Saint Agatho, 680 AD: “For Peter himself received from the Redeemer of all, by three commendations, the duty of feeding the spiritual sheep of the Church. Under his protecting shield, this Apostolic Church of his has never turned away from the path of truth in any direction of error.”
“And his authority, as that of the Prince of all the Apostles, the whole Catholic Church and the Ecumenical Synods have faithfully embraced and followed in all things.”
“but from the beginning she has received the Christian faith from her founders, the princes of the Apostles of Christ, and remains undefiled unto the end….”
“…the evangelical and apostolic uprightness of the orthodox faith, which has been established upon the firm rock of this Church of blessed Peter, the Prince of the Apostles, which by his grace and guardianship remains free from all error….” [Letter to the Sixth Ecumenical Council 680 AD]
Pope St. Nicholas I, 860 AD: “If anyone condemns dogmas, mandates, interdicts, sanctions, or decrees, promulgated by the one presiding in the Apostolic See, for the Catholic faith, for the correction of the faithful, for the emendation of criminals, either by an interdict of threatening or of future ills, let him be anathema.” [Roman Council 860 and 863; Denzinger 326]
Pope Saint Leo IX, 1053 AD: “By the See of the Chief of the Apostles, namely by the Roman Church, through the same Peter, as well as through his successors, have not the comments of all the heretics been disapproved, rejected, and overcome, and the hearts of the brethren in the faith of Peter — which so far neither has failed, nor up to the end will fail — been strengthened?” [In Terra Pax Hominibus, September 2, 1053; Denz. 351]
Pope St. Leo IX: “By passing a preceding judgment on the great See, concerning which it is not permitted any man to pass judgment, you have received anathema from all the Fathers of all the venerable Councils….”
“As the hinge while remaining immovable opens and closes the door, so Peter and his successors have free judgment over all the Church, since no one should remove their status because ‘the highest See is judged by no one.’ ” [Epistle: In Terra Pax Hominibus, 1053; Denzinger 351-353.]
Pope Boniface VIII, 1302 AD, Unam Sanctam, later confirmed by the Fifth Lateran Council:
“7. Therefore, if the earthly power goes astray, it will be judged by the spiritual power; but if a lesser spiritual power goes astray, [it will be judged] by its superior; and truly, if the highest [power] goes astray, it will not be able to be judged by man, but by God alone. And so the Apostle testifies, ‘The spiritual man judges all things, but he himself is judged by no one.’ [1 Corinthians 2:15]”
“8. But this authority, even though it may be given to a man, and may be exercised by a man, is not human, but rather divine [power], having been given by the divine mouth [of Christ] to Peter, and to him as well as to his successors, by [Christ] Himself, [that is, to him] whom He had disclosed to be the firm rock, just as the Lord said to Peter himself: ‘Whatever you shall bind,’ [Matthew 16:19] etc. Therefore, whoever resists this authority, such as it has been ordain by God, resists the ordination of God. [Romans 13:2]”
“9. Moreover, that every human creature is to be subject to the Roman pontiff, we declare, we state, we define, and we pronounce to be entirely from the necessity of salvation.” [Unam Sanctam, 1302; Fifth Lateran Council, 1512-1517]
Vatican I, 1870: “Since the Roman Pontiff, by the divine right of the apostolic primacy, governs the whole Church, we likewise teach and declare that he is the supreme judge of the faithful, and that in all cases which fall under ecclesiastical jurisdiction recourse may be had to his judgment. The sentence of the Apostolic See (than which there is no higher authority) is not subject to revision by anyone, nor may anyone lawfully pass judgment thereupon. And so they stray from the genuine path of truth who maintain that it is lawful to appeal from the judgments of the Roman pontiffs to an Ecumenical Council as if this were an authority superior to the Roman Pontiff.” [First Vatican Council, First dogmatic constitution on the church of Christ, Chapter 3, n. 8]
Vatican I, 1870: “6. For the Holy Spirit was promised to the successors of Peter, not so that they might, by His revelation, make known some new doctrine, but that, by His assistance, they might religiously guard and faithfully expound the Revelation or Deposit of Faith transmitted by the Apostles.
“Indeed, their Apostolic teaching was embraced by all the venerable fathers, and reverenced and followed by all the holy orthodox doctors, for they knew very well that this See of St. Peter always remains unblemished by any error, in accordance with the divine promise of our Lord and Savior to the prince of his disciples: ‘I have prayed for you that your faith may not fail; and when you have turned again, strengthen your brethren’ [Lk 22:32].
“This gift of truth and never-failing faith was therefore divinely conferred on Peter and his successors in this See so that they might discharge their exalted office for the salvation of all, and so that the whole flock of Christ might be kept away by them from the poisonous food of error and be nourished with the sustenance of heavenly doctrine.” [First Vatican Council, First dogmatic constitution on the church of Christ, Chapter 4, n. 7]
Pope Pius XI, 1929: “Upon this Magisterium, Christ the Lord conferred immunity from error, together with the command to teach His doctrine to all….” [Divini illius magistri, December 31, 1929; Denz. 2204.]
Pope St. Paul VI, 1968: “founded upon the apostles and handing on from century to century their ever-living Word and their powers as Pastors in the successor of Peter and the bishops in communion with him; perpetually assisted by the Holy Spirit, She has the charge of guarding, teaching, explaining and spreading the Truth which God revealed in a then-veiled manner by the prophets, and fully by the Lord Jesus.” [Apostolic Letter Solemni Hac Liturgia]
Pope St. John Paul II, 1979: “She [the Church] was born on the cross on Good Friday — as the Fathers teach; She revealed this birth of Hers to the world on the day of Pentecost, when the Apostles were “clothed with power from on high” (Lk 24:49); when they were “baptized with the Holy Spirit” (Acts 1:5). “Ubi enim Ecclesia, ibi et Spiritus Dei; ubi Spiritus Dei, illic Ecclesia et omnis gratia: Spiritus autem veritas” (Where the Church is, there is also the Spirit of God; and where the Spirit of God is, there is the Church and all grace: the Spirit is truth.”) [Inner quote from St. Irenaeus, Against Heresies, II, 24, 1]”
Cardinal Ratzinger, CDF, 1998: “only the Pope (or the Pope with an Ecumenical Council) has, as the Successor of Peter, the authority and the competence to say the last word on the ways to exercise his pastoral ministry in the universal Church.” 
“We are all invited to trust in the Holy Spirit, to trust in Christ, by trusting in Peter.” [The Primacy of the Successor of Peter in the Mystery of the Church]
Code of Canon Law, 1983:
Canon 751: “Heresy is the obstinate denial or obstinate doubt after the reception of baptism of some truth which is to be believed by divine and Catholic faith; apostasy is the total repudiation of the Christian faith; schism is the refusal of submission to the Supreme Pontiff or of communion with the members of the Church subject to him.”
Canon 1364, n. 1: “an apostate from the faith, a heretic, or a schismatic incurs a latae sententiae excommunication”
Can. 915 “Those who have been excommunicated or interdicted after the imposition or declaration of the penalty and others obstinately persevering in manifest grave sin are not to be admitted to holy communion.”
Canon Law 1373: “A person who publicly incites among subjects animosities or hatred against the Apostolic See or an ordinary because of some act of power or ecclesiastical ministry or provokes subjects to disobey them is to be punished by an interdict or other just penalties.”
“Can. 212 §1. Conscious of their own responsibility, the Christian faithful are bound to follow with Christian obedience those things which the sacred pastors, inasmuch as they represent Christ, declare as teachers of the faith or establish as rulers of the Church.”
Canon Law 1404: “The First See is judged by no one”
Categories: The Pope