I. Facts and Procedural History
Robert Allen Jordan filed this Bivens1 action against officials of the United States Marshals Service. Jordan was arrested on a charge of bank robbery in 1986 and held without bail pending trial. While in federal custody, Jordan was transported and held in various local county jails in the Middle District of Florida. The Marshals Service had contracted with these local jails to house federal pretrial detainees on a temporary basis.
On cross motions for summary judgment, the district court construed Jordan’s complaint as follows: count one alleged that the defendants placed Jordan in local “contract” jails where they knew unconstitutional conditions existed; count two alleged that the defendants released Jordan to state custody without a writ and in violation of an agreement governing federal detainees; and count three alleged that Jordan was denied adequate medical care while in local jails. The district court granted summary judgment in favor of the Marshals Service officials in their official capacities on all counts, based on sovereign immunity. The court also granted summary judgment in favor of the Marshals Service officials in their individual capacities on counts two and three.
On count one, the court granted summary judgment in favor of several Marshals Service officials because it found that Jordan had failed to present significantly probative evidence of unconstitutional conditions at the local jails to which these officials had transported Jordan. The court denied summary judgment on count one to Defendants-Appellants David Adkins, Lydia Blakey, Joseph Enders, John Hardman, Ivar Swanson, and Augustus Lawson (“the marshals”) because it found that Jordan had raised an issue of material fact as to whether unconstitutional conditions existed at the Hillsborough County and Gilchrist County jails and whether the marshals were aware of those conditions. Deputy Marshals Adkins, Blakey, Hardman, Swanson, and Lawson (“the transporting marshals”) had transported Jordan to the Hillsborough and Gilchrist jails. Enders, Assistant Director of the U.S. Marshals Service, had signed the contracts with county officials to house federal pretrial detainees.
With respect to the Hillsborough County jail, Jordan alleges that “he was forced to sleep on the floor due to overcrowding, that vermin, roaches and mice were rampant, the plumbing was faulty, and that conditions were filthy.” R.2-79 at 10-11. Jordan also alleges that “Gilchrist County jail did not allow him to use the phone, was filthy, and did not have a law library.” Id. at 11. Jordan submitted four inspection reports documenting ongoing problems at the Hillsbor-ough County jail, including severe overcrowding and other problems with food, sanitation and housing that stemmed from overcrowded conditions. R.l-38 at exs. 3-6. Another report indicated that the Gilchrist County facility “continue[d] to be very clean, orderly and well maintained,” R.l-38 at ex. 8, but Jordan submitted an affidavit by a prisoner, Joe Kotvas, contradicting the report and indicating problems with sanitation in his cell and the serving of cold food at the jail. R.l-59 at ex. 2. Kotvas further “stated that he had complained to the U.S. Marshals about problems such as overcrowding and the bad plumbing in his cell.” Id. An affidavit by prisoner James David Strickland stated that “[t]he U.S. Marshals were told numerous times of the violations of the jails, but failed to respond.” R.l-38 at ex. 12.
*1563The district court denied the marshals’ motions for summary judgment based on qualified immunity because: (1) the marshals had not established that they were acting within their discretionary authority; (2) the marshals did not explain what law and facts were known to the individual marshals; (3) the marshals might prevail on the merits so that the question of qualified immunity would not be reached; and (4) the marshals might not be entitled to qualified immunity if conditions at the Hillsborough and Gilchrist jails were unconstitutional and the marshals knew of such conditions. R.2-79 at 16-17. However, the court indicated that its denial was not permanent because it stated that it could not “at this juncture address whether Defendants are entitled to qualified immunity,” R.2-79 at 17, and that it “await[ed] a properly argued and supported motion for summary judgment_” Id. at 15 n. 12.
' These statements and other aspects of the district court’s order led the defendants to believe that the court was not referring to their latest motion for summary judgment. Thus, the defendants filed a motion to reconsider along with more affidavits. After reassignment to another judge, the district court denied the motion to reconsider and stated that the December 1990 order constituted a ruling on the defendants’ more recent motion for summary judgment. The marshals now appeal the district court’s denial of their motions for summary judgment based on qualified immunity and the district court’s denial of their motion to reconsider.
II. Jurisdiction and Standards of Review
Our jurisdiction over this interlocutory appeal is governed by Mitchell v. Forsyth 472 U.S. 511, 105 S.Ct. 2806, 86 L.Ed.2d 411 (1985). In Mitchell, the Supreme Court held that “a district court’s denial of a claim of qualified immunity, to the extent that it turns on an issue of law, is an appealable ‘final decision’ within the meaning of 28 U.S.C. § 1291 notwithstanding the absence of a final judgment.” Id. at 530,105 S.Ct. at 2817. Assuming we have jurisdiction, the issue of a government official’s qualified immunity from suit presents a question of law, and “like the generality of such questions, must be resolved de novo on appeal.” Elder v. Holloway, — U.S.—,—, 114 S.Ct. 1019, 1022, 127 L.Ed.2d 344 (1994).
III. Discussion
A. Jurisdiction
Jordan asserts that the district court’s order is not appealable because “the district court merely deferred a final decision in order for the defendants to submit additional proof as to their assertions of qualified immunity as a defense.” Appellee’s Br. at 12. Jordan relies on Riley v. Wainwright, 810 F.2d 1006 (11th Cir.1986), where we held that a district court’s denial of the defense of qualified immunity did not turn on an issue of law, and thus was not subject to interlocutory appeal, because the case “required substantial factual development.” Id. at 1007.
The marshals respond to this assertion by noting that the district court “ordered that the case proceed to trial” and they had “to move the district court to stay the trial pending appeal.” Appellants’ Reply Br. at 3. Thus, the marshals contend that the district court’s order was final and appealable under Mitchell.
We agree that the district court’s order was an appealable “final decision” under Mitchell. The Supreme Court has repeatedly stressed that qualified immunity is not simply a defense to liability, but an immunity from suit which “is effectively lost if a case is erroneously permitted to go to trial.” Mitchell, 472 U.S. at 526, 105 S.Ct. at 2815; see Hunter v. Bryant, 502 U.S. 224, -, 112 S.Ct. 534, 536, 116 L.Ed.2d 589 (1991). Our decision in Riley is distinguishable from the present case because in this ease Jordan’s complaint, together with the affidavits and other documents he submitted,2 sufficiently identified the facts underlying Jordan’s claim *1564to enable the district court to resolve the qualified immunity issue.3
Because the district court later denied the defendants’ motion to reconsider, and scheduled the case for trial, we find no merit in Jordan’s contention that the district court merely “postponed” deciding the issue of qualified immunity. We conclude that this court has jurisdiction pursuant to Mitchell to review the district court’s denial of summary judgment based on qualified immunity.
B. Qualified Immunity
“A necessary concomitant to the determination of whether the constitutional right asserted by a plaintiff is ‘clearly established’ at the time the defendant acted is the determination of whether the plaintiff has asserted a violation of a constitutional right at all.” Siegert v. Gilley, 500 U.S. 226, 232, 111 S.Ct. 1789, 1793, 114 L.Ed.2d 277 (1991). Thus, before we scrutinize the marshals’ assertion of qualified immunity, we first examine Jordan’s contentions to determine whether he asserts a cognizable constitutional claim.
1. The Constitution and Conditions of Confinement
We begin with the proposition that, while the Constitution does not require prisons to be comfortable, it also does not permit them to be inhumane, “and it is now settled that ‘the ... conditions under which [a prisoner] is confined are subject to scrutiny under the Eighth Amendment.’” Farmer v. Brennan, — U.S. —, —, 114 S.Ct. 1970, 1976, 128 L.Ed.2d 811 (1994) (quoting Helling v. McKinney, — U.S. —, —, 113 S.Ct. 2475, 2480, 125 L.Ed.2d 22 (1993)). A valid Eighth Amendment claim of this kind has two components: (1) an objective component which requires that conditions be “sufficiently serious,” Farmer, — U.S. at—, 114 S.Ct. at 1977; Wilson v. Seiter, 501 U.S. 294, 298, 111 S.Ct. 2321, 2324, 115 L.Ed.2d 271 (1991); and (2) a subjective component which requires that prison officials exhibit “deliberate indifference” to prisoner health or safety. Farmer, — U.S. at —, 114 S.Ct. at 1977; Wilson, 501 U.S. at 301-05, 111 S.Ct. at 2326-27; see also Helling, — U.S. at—, 113 S.Ct. at 2480; Hudson v. McMillian, — U.S. at—,—, 112 S.Ct. 995, 999, 117 L.Ed.2d 156 (1992); Estelle v. Gamble, 429 U.S. 97, 106, 97 S.Ct. 285, 292, 50 L.Ed.2d 251 (1976).
“No static ‘test’ can exist by which courts determine whether conditions of confinement are cruel and unusual, for the Eighth Amendment ‘must draw its meaning from the evolving standards of decency that mark the progress of a maturing society.’ ” Rhodes v. Chapman, 452 U.S. 337, 346, 101 S.Ct. 2392, 2399, 69 L.Ed.2d 59 (1981) (quoting Trap v. Dulles, 356 U.S. 86, 101, 78 S.Ct. 590, 598, 2 L.Ed.2d 630 (1958) (plurality opinion)). “The objective component of an Eighth Amendment claim is therefore contextual and responsive to ‘contemporary standards of decency.’” Hudson, — U.S. at—, 112 S.Ct. at 1000 (quoting Estelle, 429 U.S. at 103, 97 S.Ct. at 290). Only a deprivation which denies “the minimal civilized measure of life’s necessities,” Rhodes, 452 U.S. at 347, 101 S.Ct. at 2399, is grave enough to violate the Eighth Amendment. Wilson, 501 U.S. at 298-99, 111 S.Ct. at 2324. “Nothing so amorphous as ‘overall conditions’ can rise to the level of cruel and unusual punishment when no specific deprivation of a single human need exists.” Id. at 305, 111 S.Ct. at 2327.
While the conditions under which a prisoner is held are subject to scrutiny under the Eighth Amendment, the conditions under which a pretrial detainee is confined are scrutinized under the Due Process Clauses of the Fifth and Fourteenth Amendments. Bell v. Wolfish, 441 U.S. 520, 535 & n. 16, 99 S.Ct. 1861, 1872 & n. 16, 60 L.Ed.2d 447 (1979) (utilizing Fifth Amendment Due Process Clause); Hamm v. DeKalb County, 774 F.2d 1567, 1572 (11th Cir.1985) (utilizing Fourteenth Amendment Due Process Clause), cert. denied, 475 U.S. 1096, 106 S.Ct. 1492, 89 L.Ed.2d 894 (1986). In Hamm, this Court *1565held “that in regard to providing pretrial detainees with such basic necessities as food, living space, and medical care the minimum standard allowed by the due process clause is the same as that allowed by the eighth amendment for convicted persons.” 774 F.2d at 1574.
Thus, to determine the constitutionality of the conditions at the Hillsborough and Gilchrist County jails, one must look to “contemporary standards of decency,” Estelle, 429 U.S. at 103, 97 S.Ct. at 290, to ascertain whether those conditions deprived Jordan of “the minimal civilized measure of life’s necessities.” Rhodes, 452 U.S. at 347, 101 S.Ct. at 2399. More specifically, in order to violate due process, the conditions of which Jordan complains must, at a minimum, have deprived him “of a single human need.” Wilson, 501 U.S. at 305, 111 S.Ct. at 2327.
Jordan contends that he was held in overcrowded, unsanitary local jails where the food was contaminated and fire hazards existed. These contentions implicate the deprivation “of a single human need,” and if sufficiently severe, could constitute a deprivation of “the minimal civilized measure of life’s necessities.” Id. at 304-05, 111 S.Ct. at 2327. Thus we conclude that, at least by Fed. R.Civ.P. 12(b)(6) standards, Jordan has stated a claim under the Due Process Clause of the Fifth Amendment.
2. Harlow v. Fitzgerald and its Progeny
The Supreme Court established the test for qualified immunity in Harlow v. Fitzgerald: “[G]overnment officials performing discretionary functions generally are shielded from liability for civil damages insofar as their conduct does not violate clearly established statutory or constitutional rights of which a reasonable person would have known.” 457 U.S. 800, 818, 102 S.Ct. 2727, 2738, 73 L.Ed.2d 396 (1982). This formulation of the qualified immunity inquiry is intended to protect government officials “from undue interference with their duties and from potentially disabling threats of liability.” Id. at 806, 102 S.Ct. at 2732. Thus, the protection of qualified immunity extends to “all but the plainly incompetent or those who knowingly violate the law.” Malley v. Briggs, 475 U.S. 335, 341, 106 S.Ct. 1092, 1096, 89 L.Ed.2d 271 (1986).
The district court based its denial of summary judgment partly on the fact that the defendants might later prevail on the merits. R.2-79 at 16-17. However, because civil suits against government officials can entail significant social costs, see Harlow, 457 U.S. at 814, 102 S.Ct. at 2736, the Supreme Court has, as we noted above, emphasized that qualified immunity “is an immunity from suit rather than a mere defense to liability; and ... it is effectively lost if a case is erroneously permitted to go to trial.” Mitchell, 472 U.S. at 526, 105 S.Ct. at 2815 (emphasis in original). The Supreme Court has also “repeatedly stressed the importance of resolving immunity questions at the earliest possible stage in litigation.” Hunter, 502 U.S. at-, 112 S.Ct. at 536. Thus, the denial of summary judgment is not appropriate simply because the defendants might later win at trial.
In Zeigler v. Jackson, 716 F.2d 847, 849 (11th Cir.1983), this circuit established a two-step analysis for applying the Harlow qualified immunity test. First, “the defendant government official must prove that ‘he was acting within the scope of his discretionary authority when the allegedly wrongful acts occurred.’” Sammons v. Taylor, 967 F.2d 1533, 1539 (11th Cir.1992) (quoting Zeigler, 716 F.2d at 849). “[T]hen the burden shifts to the plaintiff to demonstrate that the defendant “violated clearly established constitutional law.’ ” Id. (quoting Zeigler, 716 F.2d at 849).
3. The Scope of Discretionary Authority
The district court held that the marshals had not established that they were acting within their discretionary authority. The court based that conclusion on the fact that the transporting marshals had not addressed “whether the act of transporting [Jordan] was discretionary or not.” R.2-79 at 16 n. 14. The marshals argue that the district court misinterpreted qualified immunity to protect only discretionary actions and not ministerial acts such as transporting Jordan. From the language quoted above, it *1566does appear that the district court believed an act must be discretionary to receive the protection of qualified immunity. This is an overly narrow interpretation of the term “discretionary authority.”
In Rich v. Dollar, 841 F.2d 1558 (11th Cir.1988), we acknowledged that Zeigler provided no guidance for determining whether a government official’s conduct fell “ “within the scope of his discretionary authority.’ ” Id. at 1564. Relying on pre-Harlow cases from this circuit, however, we then defined “discretionary authority” in this manner:
[A] government official can prove he acted within the scope of his discretionary authority by showing ‘objective circumstances which would compel the conclusion that his actions were undertaken pursuant to the performance of his duties and within the scope of his authority.’
Id. (quoting Barker v. Norman, 651 F.2d 1107, 1121 (5th Cir.1981)). We thus interpreted the term “discretionary authority” to include all actions of a governmental official that (1) “were undertaken pursuant to the performance of his duties,” and (2) were “within the scope of his authority.” Rich, 841 F.2d at 1564.
Jordan does not dispute the fact that all of the marshals were acting pursuant to their job functions and within the scope of their authority. The transporting marshals’ actions in delivering Jordan from one facility to another clearly fall within the Rich definition of “discretionary authority” whether such actions be characterized as ministerial or discretionary in nature. Moreover, “it would be unwise to engage in a ease by ease determination of Section 1983 immunity based upon the ministerial versus discretionary nature of the particular official act challenged.” Coleman v. Frantz, 754 F.2d 719, 727 (7th Cir.1985); see also McIntosh v. Weinberger, 810 F.2d 1411, 1432 (8th Cir.1987) (finding “no recent case ... in which a court has rejected qualified immunity simply because the official in question was performing a ministerial duty”), vacated and remanded on other grounds sub nom. Turner v. McIntosh, 487 U.S. 1212, 108 S.Ct. 2861, 101 L.Ed.2d 898, cert. denied, 487 U.S. 1217, 108 S.Ct. 2870, 101 L.Ed.2d 905 (1988). Enders’s actions in signing the contracts with county officials also fall within that definition. The district court erred in concluding that the marshals were not entitled to qualified immunity because they had not established that they were acting within the scope of their discretionary authority.
4. Violation of “Clearly Established Law"
Because all of the marshals service officials were acting within the scope of their discretionary authority, the burden under Zeigler shifted to Jordan to show that the Marshals “ ‘violated clearly established constitutional law”’ under Harlow. Sammons, 967 F.2d at 1539 (quoting Zeigler, 716 F.2d at 849). To be clearly established, the “contours” of an asserted constitutional right “must be sufficiently clear that a reasonable official would understand that what he is doing violates that right.” Anderson v. Creighton, 483 U.S. 635, 640, 107 S.Ct. 3034, 3039, 97 L.Ed.2d 523 (1987). This does not mean that a court must have previously found the very action in question unlawful, but it does mean that “in the light of preexisting law the unlawfulness must be apparent.” Id.
By adapting language from Anderson to fit the law applicable to cases involving pretrial detention conditions, we can distill the qualified immunity issue in this case to one objective, albeit fact-specific (and lengthy) question: In light of the clearly established law at that time, would a reasonable government official, having the information the marshals had about the local jails, have understood that contracting to place Jordan in the local jails or transporting Jordan to the local jails would violate Jordan’s constitutional rights because the conditions in those jails would deprive Jordan of at least one human need? We conclude that the answer to this question is “no,” and thus the marshals are entitled to qualified immunity in this case.
In Hamm v. DeKalb County, 774 F.2d at 1567, the plaintiff sued DeKalb County, Georgia, alleging that he was subjected to unconstitutional conditions in the DeKalb County jail during his incarceration there. *1567During Ms incarceration, “the jail’s population at times exceeded the facility’s design capacity. As a result of the overpopulation, at times Hamm slept on an eating table or on a mattress placed on the floor. Often the floor and the linens provided were unsanitary.” Id. at 1569. Hamm also alleged that the food in the jail occasionally contained foreign objects, and that he was denied adequate medical care. Id. at 1569-70.
While the conditions in the DeKalb County jail were doubtless unpleasant, we held that they were not unconstitutional. “The fact that the food occasionally contains foreign objects or sometimes is served cold ... does not amount to a constitutional deprivation. ... The fact that Hamm temporarily had to sleep upon a mattress on the floor or on a table is not necessarily a constitutional violation.” Id. at 1575. Even when considered in conjunction with Hamm’s medical care claims, the “totality of conditions” was not unconstitutional. Id. at 1575-76.
In light of our decision in Hamm, a reasonable government official would not have understood the conditions in Hillsborough or Gilchrist County jails to be an unconstitutional deprivation of “a single human need.” Wilson, 501 U.S. at 305, 111 S.Ct. at 2327. Thus, no reasonable government official would have concluded that contracting with these jails or transporting Jordan to them was a violation of Jordan’s constitutional rights.
IV. Conclusion
Determining when overall conditions of confinement are “sufficiently serious” to violate the constitution demands a fact-intensive analysis. It involves the application of vague “contemporary standards of decency” to an amorphous collection of circumstances, and it is often a very difficult task for a court to perform. Absent a court ruling, we would expect a reasonable government official to “know” that overall conditions of confinement are clearly unconstitutional only in a truly extreme case. TMs is not such a case. Because a reasonable government official in one of the marshals’ positions would not have understood Ms actions to violate Jordan’s constitutional rights in light of the clearly established law at that time, the district court erred in denying the marshals’ motion for summary judgment based on qualified immumty.
The district court’s December 1990 order denying the Defendants-Appellants’ motion for summary judgment, No. 91-3042, is REVERSED. The Defendants-Appellants’ appeal of the district court’s demal of their motion to reconsider the summary judgment order, No. 92-2009, is DISMISSED as MOOT.
. Bivens v. Six Unknown Named Agents of Fed. Bureau of Narcotics, 403 U.S. 388, 91 S.Ct. 1999, 29 L.Ed.2d 619 (1971).
. Counsel for all parties have directed us to the affidavits and documents submitted by the parties to "flesh out” Jordan's claims.
. Moreover, the continuing validity of Riley is doubtful, see Howell v. Evans, 922 F.2d 712, 717-18 (11th Cir.), vacated after settlement, 931 F.2d 711, 712 (11th Cir.1991), particularly in light of the Supreme Court's subsequent emphasis that qualified immunity "ordinarily should be decided by the court long before trial.” Hunter, 502 U.S. at-, 112 S.Ct. at 537.