When is it justified to overthrow a government?

What Hobbes, IIRC, called an “appeal to Heaven” (i.e., an appeal to war).