And in that case who had suspended habeas corpus, Congress or the President?
General Wilkinson, the military commander in New Orleans. He blocked the delivery of Swartwout's writ from the territorial judge, then transfered Swartwout as a prisoner beyond the judge's jurisdiction. The Supreme Court ruled that Swartwout and Bollman had a right to this writ because its suspension was not constitutionally enacted. It is actually a very similar case to the 2004 Gitmo ruling, where the court found that habeas corpus had not been constitutionally suspended even though it was being denied.