What's many people forget is that local governments themselves are special types of corporations (specifically "municipal corporations"). They can even go bankrupt (unlike the states whose devolved power they use).
Bankruptcy involves someone else determining the alteration of rights and obligations under an established legal framework.
Repudiation of debt is just exercise of sovereign power by the sovereign debtor.
(In between the two is non-bankruptcy bailouts, where the debtor isn't the sovereign, but the relief is a specifically targeted exercise of sovereign power rather than an adjudication under a preexisting legal framework.)
https://en.wikipedia.org/wiki/List_of_sovereign_debt_crises
Update: this is not a list of default events, but a list of crises. Some of them are default events, some are not.