OPINION OF THE COURT
Plaintiffs are five purchasers of homes whose mortgages were insured by the Federal Housing Administration (FHA). Insurance on these mortgages was issued under the “existing home” provisions of §§ 221 and 235 of the National Housing Act, 12 U.S.C. §§ 1715Í and 1715z (1970). 1 Their complaint, on behalf of “all persons in the City of Philadelphia who have purchased, are in the process of purchasing, or may purchase in the future, homes under the 221(d)(2) and 235 Existing House Programs”, alleges that Philadelphia FHA officials violated the Act by insuring mortgages on homes that did not meet the requirements of Philadelphia’s Housing Code. The complaint asks for mandamus, injunctive and declaratory relief against officials of FHA and the Secretary of Housing and Urban Development (HUD), the depártment under which FHA operates. Plaintiffs also prayed for damages against the United States.
Plaintiffs moved for partial summary judgment supported by affidavits. Defendants filed no opposing affidavits but moved for dismissal of the complaint. The district court granted plaintiffs’ motion in part, declaring that the FHA officials had violated the Act and enjoining them from insuring mortgages on properties not complying with the Housing Code. The court denied defendant-officials’ motion to dismiss the complaint against them but granted the government’s motion to dismiss the portion of the complaint seeking damages against the United States.
We turn first to the defendants’ appeal. Since they filed no counter affidavits they, of course, limit themselves to asserting reasons why the legal conclusions on which the summary judgment rests are erroneous.
STANDING
Defendants first contend that the district court was without jurisdiction to entertain the claims on which judgment was granted for plaintiffs because plaintiffs lack standing to sue for injunctive and declaratory relief. Where, as here, an action is brought in federal court challenging federal administrative action as inconsistent with a statute, the plaintiff must meet two requirements to show standing: (1) the challenged action must have injured some interest of the plaintiff, and (2) Congress must have intended that plaintiff be permitted to seek judicial review of such statutory violations. Sierra Club v. Morton,
Although the precise limits of Congressional power over federal jurisdiction are not clearly drawn, it is settled law that Congress can in legislating confide certain decisions to the discretion of administrative officials, prohibiting judicial review of the correctness of those decisions. E. g., Switchmen’s Union v. National Mediation Board,
While it is not universally applicable, the Administrative Procedure Act (APA), 5 U.S.C. § 701 et seq. (1970), generally serves as the starting point for determining Congressional intent regarding judicial review of federal administrative action.
2
Section 10 of the APA, 5 U.S.C. § 702 (1970), provides that any person “adversely affected or aggrieved by agency action within the meaning of a relevant statute, is entitled to judicial review thereof.” The Supreme Court has interpreted this language as providing review to anyone who has suffered injury to an interest that is “ ‘arguably within the zone of interests to be protected or regulated’ by the statutes that the agencies were claimed to have violated.” Sierra Club v. Morton,
supra
at 733,
The theory advanced by defendants in support of this contention is that plaintiffs’ injured interest is in having the FHA Philadelphia Office insure only mortgages on homes complying with Philadelphia’s Housing Code and that the allegedly violated provisions of the National Housing Act do not arguably protect this interest. We think that defendants misconceive the nature of the zone of interests test. The zone of interests test does not focus so precisely as defendants urge on the specifics of the complaint to determine the interest injured or on the allegedly violated statutory provision to determine the protection arguably afforded such interest.
Defendants argue that the relevant interest of plaintiffs for APA standing purposes is their interest in obtaining a remedy — FHA insurance of mortgages only on homes meeting housing code standards. That argument confuses the relevant interest for standing purposes under the APA with the merits of the case. This confusion is inherent in the “legal interest” test that some courts found embodied in the APA before the Supreme Court’s rejection of that interpretation in Data Processing. The District Court, following the Data Processing test for determining whether a person is adversely affected or aggrieved as that phrase is used in the APA, correctly looked not to the remedy sought, but to the effect the challenged administrative action had on plaintiffs. Plaintiffs alleged an interest in obtaining a “decent home”, and their pleadings and affidavits related facts showing that defendants’ actions had impaired their ability to secure a decent home. We agree with plaintiffs and the district court that this is the relevant interest and that a sufficient showing had been *1365 made that it was injured by the defendants’ actions.
Defendants’ contention that plaintiffs’ interest was not within the zone of interests of the allegedly violated statute also must fail. Defendants’ argument that we must look to the particular provision of the National Housing Act that defendants are charged with violating again confuses standing under the APA with the merits of plaintiffs’ claim.
3
The district court complied with the Supreme Court’s
Data Processing
decision by examining the statute, not the particular provision, purportedly violated to ascertain whether plaintiffs were “aggrieved within the meaning of a relevant statute.” Beyond dispute, the interest of low-income families in obtaining “decent” housing is among the interests protected by the National Housing Act. Thorpe v. Housing Authority,
JURISDICTION
Defendants also contend that the district court lacked jurisdiction over the plaintiffs’ claims for injunctive and declaratory relief. Numerous jurisdictional grounds are asserted by plaintiffs. The district court found that it had jurisdiction on each of the asserted grounds, and defendants contest each finding. We reach only one of these findings: that the court below had jurisdiction under 28 U.S.C. § 1337 (1970). Section 1337, without qualification as to the amount in controversy, grants district courts jurisdiction over actions “arising under any Act of Congress regulating commerce . . . . ” Defendants argue that the National Housing Act, under which this suit arises, is not an act regulating commerce within the meaning of § 1337.
In support of their position, defendants cite Potrero Hill Community Action Committee v. Housing Authority,
One further contention advanced by defendants to contest jurisdiction here is that plaintiffs’ claim is frivolous and insubstantial, and, therefore, the court’s jurisdiction must fail. Where, as here, the only dispute is a matter of federal law, federal “[j]urisdiction ... is not defeated ... by the possibility that the averments might fail to state a cause of action on which petitioners could actually recover.” Bell v. Hood,
CLASS ACTION
Once over the jurisdictional hurdle, we must decide two questions of procedure before reaching defendants’ contention on the merits. The first procedural question defendants raise is whether this suit is properly a class action. Plaintiffs’ complaint seeks relief for the five named plaintiffs and for past, present and future Philadelphia purchasers of homes with mortgages insured under §§ 221 or 235 of the National Housing Act. Plaintiffs filed a motion for class action determination. Defendants did not oppose the motion below. They contend, however, that this cannot be treated as a class action because the district judge never entered an order determining this to be a class action.
Rule 23 of the Federal Rules of Civil Procedure declares that “[a]s soon as practicable after the commencement of an action brought as a class action, the court shall determine by order whether it is to be so maintained.” Fed.R.Civ.P. 23(c)(1). Rule 23 also requires the district court to include in its judgment a description of “those whom the court finds to be members of the class.” Fed.R.Civ.P. 23(c)(3). The court below failed to comply with' either of the requirements set forth above.
Plaintiffs have the burden of showing that they represent a class. See J. Moore, 3B Moore’s Federal Practice ¶ 23.02-2 (2d Ed.1969). Because the class action determination affects the rights of class members not before the court, as well as named plaintiffs and defendants, it is not sufficient that plaintiffs make an uncontested motion for a class determination. The Rules impose the additional requirements of class determination and definition on the district judge. Relief cannot be granted to a class before an order has been entered determining that class treatment is proper. Cf. Dorfmann v. Boozer,
SUMMARY JUDGMENT — UNREQUESTED RELIEF
The second procedural point that must be resolved before reaching the merits is defendants’ contention that the District Court erred by granting relief on summary judgment not requested in plaintiffs’ motion for partial summary judgment. Defendants correctly note that *1367 plaintiffs’ motion made no explicit mention of injunctive or declaratory rejief. The plaintiffs’ complaint, however, had specifically requested such relief and the memorandum accompanying plaintiffs’ motion spoke to such relief, as well as to their prayer for damages.
Even were it not clear from these facts that the motion for partial summary judgment was intended to comprehend plaintiffs’ request for injunctive and declaratory relief, granting such relief here would not be error. Rule 54 of the Federal Rules of Civil Procedure states that, except in the case of default judgments, “every final judgment shall grant the relief to which the party in whose favor it is rendered is entitled, even if the party has not demanded such relief in his pleadings.” Fed.R.Ciy.P. 54(c). The provision of Rule 54 is applicable to summary, as well as other, judgments. J. Moore, 6 Moore’s Federal Practice ¶ 54.62 (2d Ed. 1969). We, therefore, reject defendants’ contention that it was error for the court below to grant summary relief not explicitly requested in plaintiffs’ motion.
SUMMARY JUDGMENT — MERITS OF THE CLAIM
The essentials of the claim advanced by plaintiffs are relatively easily stated. 12 U.S.C. § 17151(d) (2) (1970) [§ 221(d) (2)], incorporated by reference in §1715z(i)(2) [§ 235], provides:
(d) To be eligible for insurance under this section, a mortgage shall— ^ .
******
(2) be secured by a property -. . . meeting the requirements of all State laws, or local ordinances or regulations, relating to the public health or safety, zoning, or other-
wise, which may be applicable thereto ....
Plaintiffs argue that the Philadelphia Housing Code is an ordinance applicable to homes in Philadelphia, that they purchased homes in Philadelphia, insured by FHA, which did not meet Code standards, and that the defendant-FHA and HUD officials, therefore, have violated the statutory directive. Defendants dispute each point of plaintiffs’ argument.
First, defendants claim that the Philadelphia Housing Code is not an applicable local ordinance within the meaning of § 221(d)(2). In support of this claim, defendants invoke statutory history, quoting a House Report’s statement that “[e]xisting housing units would be eligible under [§ 235] if the units meet standards prescribed by the Secretary [of HUD].” H.R.Rep.No.1585, 90th Cong., 2d Sess. 8 (1968), U.S.Code Cong. & Admin.News 1968, p. 2880. From this quoted statement, defendants urge us to find that housing approved for FHA mortgage insurance need only meet standards set by the Secretary of HUD and not local code standards. The remainder of the paragraph from which defendants quote, however, makes clear that the standards referred to do not supplant other statutory requirements such as compliance with local ordinances; instead, the paragraph refers to an additional limitation: mortgage insurance under § 235 is conditional on the Secretary’s allocation of sufficient FHA insurance funds to existing housing in the particular area. 4 The Report encourages the Secretary to divide FHA insurance funds between new and existing housing in each geographical area in such a manner that the Congress’ long-range housing goals will be achieved.
*1368 The Housing Act does require properties to meet certain housing standards set by the Secretary of HUD, but the legislative history relevant to this requirement does not indicate that it qualifies the operation of the local ordinance provision. See 1959 U.S.Code, Cong. & Ad.News, p. 2857. The terms of the statute are clear, and we find no statutory history that casts doubt on our conclusion that the Philadelphia Housing Code is a local ordinance relating to the public health or safety applicable to homes in Philadelphia.
Defendants next argue that they have complied with the Philadelphia Housing Code. Having failed to file affidavits in opposition to the plaintiffs’ motion for summary judgment, defendants cannot contest the district court’s finding that plaintiffs’ homes do not, and did not at the time the FHA insured mortgages on them, meet Philadelphia Housing Code standards. Defendants’ contention instead is that they, not the homes, complied with the Code; the Code does not require an inspection before sale of an existing home; no inspection was made, hence no violations discovered. To require that FHA inspect homes to uncover Code violations before insuring mortgages on them would, defendants assert, impose on FHA an obligation not contained in the Code.
In considering defendants’ argument, we note that § 221(d)(2) requires not that the actions of FHA officials responsible for insuring mortgages comply with local regulations, but rather that the properties securing the FHA-insured mortgages comply. We need not, however, decide whether § 221(d)(2) requires that the FHA conduct inspections to assure that homes for which FHA has made tentative mortgage insurance commitments are free from all Code violations. Plaintiffs’ uncontested affidavits establish that Philadelphia FHA officials have not made any attempt to determine whether homes are subject even to major code violations. The narrowest reading we could give to § 221(d)(2) would require that defendants make reasonable efforts to ascertain that the homes securing FHA-insured mortgages meet Philadelphia Housing Code standards. Since the facts established below demonstrate that this has not been done, plaintiffs properly prevailed on the merits of their claim.
Finding merit in plaintiffs’ claim, we turn to defendants’ final contention: that named plaintiffs are not entitled to declaratory or injunctive relief. In part, this contention is a recast version of defendants’ argument on standing. Defendants urge us, in effect, to find that plaintiffs have no legal right to relief and, therefore, that their suit for declaratory and injunctive relief should be dismissed. Although the cases inquiring plaintiffs to have a “legal right” to satisfy standing requirements have been rejected, we are asked to find that plaintiffs must show a legal right to the relief granted.
Since the merger of law and equity sides in federal courts, there has been an increasing tendency to ignore the former distinctions between law and equity. Certainly, former procedural distinctions properly have been abandoned. See Fed.R.Civ.P. 1. Nonetheless, some differences remain. To secure relief on a claim at law, a plaintiff must, by definition, show that he has a “legal right.” Thus, one who seeks to secure damages for violation of a statute or.a constitutional provision must demonstrate a legislative or constitutional intention that the provision relied upon protects the specific plaintiff from harm and comprehends award of damages to him when such harm occurs. See Bivens v. Six Unknown Named Agents,
Before addressing the rest of defendants’ argument on this contention, we feel impelled to comment on the effect the Supreme Court’s recent decision in National Railroad Passenger Corp. v. National Association of Railroad Passengers, - U.S. -,
We need not make a similar inquiry into the National Housing Act at this point since the plaintiffs here have asserted a valid cause of action for equitable relief under the Administrative Procedure Act. As relevant, the APA provides that “except to the extent that statutes preclude judicial review [a] person . . . adversely affected or aggrieved by agency action within the meaning of a relevant statute is entitled to judicial review thereof.” 5 U.S.C. §§ 701, 702 (1970). The form of action prescribed is “any applicable form of legal action, including actions for declaratory judgments or writs of prohibitory or mandatory injunction . . . . ” 5 U.S.C. § 703 (1970). As set forth above, the plaintiffs meet the requirements of these APA provisions, and no question of unreviewability has been raised. We, thus, find no merit in defendants’ contention to the extent that it might, in light of Amtrak, be read as challenging plaintiffs’ statement of a cause of action.
Defendants’ contention, however, embraces another idea: that the relief granted plaintiffs must be calculated to redress the wrong to them. This idea clearly is incorporated into the federal law of declaratory judgments. In the early part of this century, the ability of federal courts to render declaratory judgments consistent with the Constitution was the subject of considerable debate. The debate ended with the Supreme Court’s decision in Aetna Life Insurance v. Haworth,
To sustain the declaratory judgment, then, we must determine that the issue resolved was central to an immediate, legal dispute between the par
*1370
ties before the district court. We approach this determination cognizant of the district court’s significant discretion in the grant or withholding of declaratory judgment. See Samuel Goldwyn, Inc. v. United Artists Corp.,
The argument may be advanced that the declaratory judgment rendered failed to settle the rights of the named parties. See United States Fidelity & Guaranty Co. v. Koch,
Defendants’ contention that the relief granted was improper extends to injunctive as well as declaratory relief. While plaintiffs may secure redress for violations of the National Housing Act even though they have no legal right to administrative compliance with the Act, plaintiffs are entitled only to redress of their personal grievances. Injunctions, which carry possible contempt penalties for their violation must be tailored to remedy the specific harms shown rather than to “enjoin ‘all possible breaches of the law.’ ” Hartford-Empire Co. v. United States,
JURISDICTION OVER DAMAGE CLAIM — TUCKER ACT
We now take up consideration of plaintiffs’ appeal from dismissal of their *1371 claim for damages. The district judge stated as his reason for dismissing the damage claim that the court lacked jurisdiction over the claim. Plaintiffs argue that the court below confused lack of jurisdiction with failure to state a claim. Defendant on the damage claim, the United States, would find no distinction between those grounds, for reasons we will discuss later, and asks us to read the district court opinion as properly finding that jurisdiction did not exist and that no claim was stated on which relief could be granted. We consider both grounds asserted to justify dismissal.
The jurisdictional basis asserted by plaintiffs is the Tucker Act provision giving district courts jurisdiction, concurrent with the Court of Claims, over claims “against the United States, not exceeding $10,000 in amount, founded either upon the Constitution or any Act of Congress . . . .”28 U.S.C. § 1346(a)(2) (1970). The district court held that plaintiffs’ claim for damages was not “founded upon” an Act of Congress within the meaning of the Tucker Act. The district court’s reasoning, advanced by the United States on appeal, was that the Tucker Act grants jurisdiction to award damages to persons who have a statutory right to receive a sum of money; and, since the District Court found that the National Housing Act confers no such right on plaintiffs, the court decided that it had no Tucker Act jurisdiction. We disagree.
As we noted above in connection with the jurisdictional arguments of defendants to the claims for declaratory and injunctive relief, jurisdiction is not defeated by the possibility that plaintiffs will not be entitled to recover. Plaintiffs allege that the National Housing Act implicitly grants them the right to receive damages from the United States for violation of specific provisions. They have asserted a claim “founded upon” an Act of Congress, and their allegation supports the district court’s jurisdiction to decide the merits of their claim.
6
We reject any statement to the contrary contained in Eastport Steamship Corp. v. United States,
FAILURE TO STATE A CLAIM
The United States also urges us to affirm the dismissal on the ground that plaintiffs failed to state a claim upon which relief could be granted, again advancing the argument that the Tucker Act provides for damage awards only to persons having a right to receive money from the government. Under the view argued by the government, and adopted by the district court, the Tucker Act restores money improperly taken or releases money improperly withheld, but affords no damage remedy for other statutory violations. Plaintiffs assert both that they have a right under the National Housing Act to receive money and that a damage remedy should be implied to protect them from harm where the government fails to comply with the “local ordinance” provision of § 221(d)(2).
The second part of plaintiffs’ argument addresses itself to a different point than that primarily argued by the United States. This latter part of plaintiffs’ argument is relevant to the existence, or absence, of a cause of action for damages fairly to be inferred from § 221(d)(2). The first part of plaintiffs’ argument is relevant to a different point, on which issue is joined by the government: whether the Tucker Act waiver of sovereign immunity extends to damage recoveries on causes of action other than for money wrongly *1372 withheld or for property wrongly taken. 7 We do not pass on the scope of the Tucker Act’s waiver of sovereign immunity because we find that plaintiffs have failed to show that a right to damages is implicit in § 221(d)(2).
In order to find a damage remedy implicit in § 221(d) (2), we must determine (1) that the purpose of the provision violated is to protect the class of persons to which plaintiffs belong, and (2) that a damage remedy is necessary to effectuate that purpose. Bivens v. Six Unknown Named Agents,
supra
at 395-397 of
The case is remanded for further proceedings consistent with this opinion.
Notes
. These provisions allow the FHA to insure mortgages for nearly the full value of certain homes purchased by persons with incomes below stated levels. The existing home programs also contain limitations on the value of the home; mortgage insurance under these programs may be issued only on homes of low or moderate value. § 235 of the National Housing Act also provides in some eases for mortgage assistance payments to be made by FHA. Two of the named plaintiffs receive such payments.
. No argument is advanced by any party to except this case from the generally applicable provisions of the APA.
. If there were a question whether Congress liad placed the particular decision challenged here outside the pale of judicial review, we would, in order to resolve that question, be required to examine the specific provision of the National Housing Act allegedly violated before reaching the merits.
See
Association of Data Processing Serv. Organizations v. Camp,
. The paragraph relied on by defendants reads:
Existing housing units, however, would be eligible under this program if the units meet standards prescribed by the Secretary. The committee expects that the Secretary will allocate contract funds between existing and new housing units in a manner which fur-, thers the long-range housing goal of providing a decent living environment for all American families. It further expects that, in areas where the housing market is tight and added demand for existing housing could seriously inflate prices, the Secretary will generally permit assistance only with respect to new or substantially rehabilitated dwellings.
. In a case sucli as this, where the injunction does not aid plaintiffs in any way, it is not necessary to balance carefully the various factors that control the issuance and scope of injunctions to determine if the nro"er protection has been afforded interests of plaintiffs, defendants and the public. But, while there is no need to articulate it, we recognize that the balancing of those interests, in gross, underlies our decision. See cases cited in J. Moore, 7 Moore’s Federal Practice ¶ 65.18 [3] (2d Ed. 1969).
. The Tucker Act, in providing for district court jurisdiction over certain claims, has been construed as a waiver of sovereign immunity. And while the presence or absence of jurisdiction must be determined, accepting plaintiffs’ allegations as true, the extent of the government’s waiver of sovereign immunity is unaffected by the complaint. It thus may be possible for the complaint to state a claim “founded upon” an Act of Congress for jurisdiction purposes yet outside that language for immunity purposes.
. The distinction between these points is probably best illustrated by reference to the Supreme Court’s decision in Bivens v. Six Unknown Named Agents,
The United States claims that it has consented to suit only in cases where the plaintiff had a right to money or property. Had the Bivens plaintiffs sued the United States, the government presumably would have argued on remand that, while a cause of action for damages could be inferred from the Fourth Amendment, sovereign immunity bars recovery because the Fourth Amendment grants no right to receive money, but only a right to be free from certain searches. We do not intimate any view concerning the validity of this approach.
