after making the foregoing statement, delivered the opinion of the court.
The motion to remand presented for decision the question whether there v/as in the case a controversy wholly between citizens of different States, to the complete determination of which the State of Nebraska was not an indispensable party. If defendant’s contention was correct, the action could have been originally brought in the Federal court and its jurisdiction of the case was complete on removal. The Circuit Court
*441
was called upon to determine that question and to exercise judicial discretion in deciding it. This being so, its jurisdiction was complete, and if it erred in its conclusions the remedy is not by writ of mandamus, which cannot be used to perform the office of an appeal or writ of error. The applicable principles have been laid down in innumerable cases.
Ex parte Bradley,
It appeared in the case of
Pollitz, Petitioner,
The rule was discharged and the petition dismissed, and thé court said (330):
“The suit was commenced in the state court by a citizen and resident of the city, county and State of New York against a corporation, a citizen of the State of Ohio, and other defendants, many of whom were residents and citizens of the *442 State of New York, the value of the matter in dispute, exclusive of interest and costs, exceeding the jurisdictional sum.
“The defendant, the Wabash Railroad Company, a citizen of Ohio, filed its petition and bond in proper form for the removal of the suit into the United States Circuit Court for the Southern District of New'York, on the ground of separable controversy so far as it was concerned, and it was removed accordingly. A motion to remand was made and denied by the Circuit Court, which held that the controversy was separable, and that the other defendants were not indispensable or necessary parties to the complete determination of that separable controversy.
“The issue on the motion to remand was whether such determination could be had without the presence of defendants other than the Wabash Railroad Company, and this was judicially determined by the Circuit Court, to which the decision was by law committed.
“The application to this court is for the issue of the writ of mandamus directing the Circuit Court to reverse its decision, although in its nature a judicial act and within the scope of its jurisdiction and discretion.
“ But mandamus cannot bo issued to compel the court below to decide a matter before it in a particular way, or to review its judicial action had in the exercise of legitimate jurisdiction, nor can the writ be used to perform the office of an appeal or writ of error.
“Where the court refuses to take jurisdiction of a case and proceed to judgment therein, when it is its duty to do so, and there is no other remedy, mandamus will lie unless the authority to issue it has been taken away by statute. In re Grossmayer, Petitioner,177 U. S. 48 ; In re Hohorst, Petitioner,150 U. S. 653 . And so where the court assumes to exercise jurisdiction on removal when on the face of the record absolutely no jurisdiction has attached. Virginia v. Paul,148 U. S. 107 ; Ex parte Wisner,203 U. S. 449 .'
*443 “In In re Hohorst, Petitioner,150 U. S. 653 , the bill was filed in the Circuit Court of the United States for the Southern District of New York against a corporation and certain other defendants, and was dismissed against the corporation for want of jurisdiction. From that order complainant took an appeal to this court, which was dismissed for want of jurisdiction because the order, not disposing of the case as to all the defendants, was not a final decree from which an appeal would lie.148 U. S. 262 . Thereupon an application was made to this court for leave to file a petition for a writ of mandamus to the judges of the Circuit Court to take jurisdiction and to proceed against the company in the suit. Leave was granted and a rule to show, cause entered thereon, upon the return to which the writ of mandamus was awarded. In re Atlantic City Railroad,164 U. S. 633 .
“In Ex parte Wisner, Wisner, a citizen of the State of Michigan, commenced an action at law in the Circuit Court for the city of St. Louis, State of Missouri, against Beardsley, a citizen of the State of Louisiana. After service of summons on Beardsley, he filed his petition to remove the action from the state court into the Circuit Court of the United States for the Eastern District of Missouri, on the ground of diversity of citizenship, with the proper bond, and an order of removal was made by the State court, and the transcript of record was filed in the Circuit Court. Wisner (who had had no choice but to sue in the state court) at once moved to remand the case, on the ground that the suit did not raise a controversy within the jurisdiction of the Circuit Court, and that, as it appeared on the face- of the record that plaintiff was a citizen and resident of Michigan, and defendant a citizen and resident of Louisiana, the case was not one within the original jurisdiction of the Circuit Court, in accordance with the statute providing that where jurisdiction is founded only on the fact that the action is between citizens of different States, suit shall be brought only in the district of the residence of either the plaintiff or the defendant. The motion to remand was de *444 nied, and Wisner applied to this court for a writ of mandamus, which was subsequently awarded.
“In the present case the removal was granted and sustained on the ground that there was a controversy between the removing defendant and plaintiff, which could be fully determined as between them without the presence of the other defendants. That being so, the suit might have been brought originally in the Circuit Court against the railroad company as sole defendant.
“If the ruling of the Circuit Court was erroneous, as is contended, but which we do not intimate, it may be reviewed after final decree on appeal or error. Missouri Pacific Railway Company v. Fitzgerald,160 U. S. 556 -582.”
If this case is one wherein there was a controversy wholly between citizens of different States, to the complete determination of which other parties to the record were not indispensable or necessary, then the removal being properly sought on that ground, the Federal court had jurisdiction. If the State of Nebraska was not an indispensable party by reason of its interest in the controversy, its presence on the record as a plaintiff would not defeat the jurisdiction of the Federal court. And to the Circuit Court was committed the decision of those questions in the first instance, the correctness of which cannot be examined upon this application.
We must add that the mere presence on the record of the State as a party plaintiff, will not defeat the jurisdiction of the Federal court when it appears that the State has no real interest in the controversy. Anti in the present case the Circuit Court was not bound to adjudicate the question merely by an inspection of the nominal parties to the record, for the mere presence of the State of Nebraska as a party plaintiff was not of itself sufficient necessarily to defeat the jurisdiction of the Federal court. It became, and was, the duty of the Circuit Court to determine the question whether the State of Nebraska was an actual party plaintiff in the present suit, and to determine that question by consideration of the nature *445 of the case as presented by the whole record, and not “by a reference to the nominal parties to the record.”
This the Circuit Court did, and from an inspection of the entire record, for the reasons stated in the opinion filed, the court held that, although the State of Nebraska was a nominal party plaintiff on the record, yet it had no real substantial legal interest in the controversy. The complaint alleged that the Nebraska State Railway Commission .was charged with the duty to regulate proper and lawful intrastate rates upon the railroad lines in the State of Nebraska, and to enforce thereon all lawful intrastate rates and charges for the transportation of passengers and freight, and to prevent discrimination in such intrastate freight and passenger rates and charges; and alleged the duty,of the Attorney General to bring all suits necessary for that purpose; the suit had for its object and purpose merely the securing of an injunction against the defendant company, to restrain that company from charging for the transportation of freight and passengers within the State of Nebraska more than the rates fixed by the state authority for that purpose, and from disobeying orders of said Nebraska' State Railway Commission, and from concealing from said commission the true condition of its business, and from making any unlawful discrimination in issuing intrastate passes, mileage tickets and transportation within the State of Nebraska.
The question whether the State of Nebraska is the real party plaintiff must be determined from the consideration of the nature of the case as.disclosed by the record. If the nature of the case is such that the State of Nebraska is the real party plaintiff, the Federal court will so decide for all purposes of jurisdiction, even though the State were not named as a party plaintiff. If the nature of the case is such that the State is not a real party plaintiff, the Federal court will so decide for the purposes of jurisdiction, even though the State is named nominally as a party plaintiff.
The question whether such a case as this is one in which
*446
the State is the real party in interest and the real party plaintiff was determined by this court in
Missouri, Kansas & Texas Railway Company
v.
Missouri R. R. & Warehouse Commissioners,
The court analyzed the nature of the proceeding, showed that there was nothing in such an action which affected the State as such, and that the relief sought did not inure to the State alone, and that a decree in favor of the plaintiff would not effectively operate in favor of the State.
The Circuit Court might clearly have been correct in its decision that the present case was one'in which the State of Nebraska was not the real party plaintiff, but that decision could not be reviewed by mandamus.
The Circuit Court was called upon on this record to decide whether the State of Nebraska had any real or legal interest *447 in the controversy alleged to have been wholly between citizens of different States; and it was a decision which the court had a right to make, involving no abuse of judicial discretion. A premature review cannot be obtained by a writ of mandamus.
Without expressing any opinion as to whether the State was a necessary party to the relief asked, which involved the re-movability of the case, this court bases its judgment on the mandamus entirely upon the ground that, as the Circuit Court had jurisdiction to pass upon the question of the removability of the case, and as its order overruling the motion to remand was subject to be reviewed by a higher court after the case had been disposed of by final judgment, the remedy was by appeal and not by mandamus.
Buie discharged; petition dismissed.
