delivered the opinion of the court.
The plaintiff alleges in her petition that she is an infant female under the age of fourteen years, and that on the 20th day of July, 1869, David A. Wilson was warden and keeper of the penitentiary at Jefferson City, and that Dallmeyer and Draper were two of the inspectors of the penitentiary at that time ; that by virtue of the law in such cases made and provided, the defendants had the care, custody, discipline and police of the prisoners confined therein, and that at the time aforesaid they carelessly, negligently, and unlawfully suffered, permitted and allowed a certain convict and prisoner belonging to the penitentiary to go at large, unattended by guards, without the walls of the said penitentiary; that the plaintiff, in. the exercise of her legal *256rights, and without any negligence or carelessness on her part, whilst walking at a considerable distance from the penitentiary, was caught by said convict and prisoner, and brutally assaulted, outraged and ravished, for which she claims damages, etc.
To this petition the court sustained a demurrer, upon which judgment was rendered, and the cause is brought up for review on writ of error. The statute places the government and management of the penitentiary in a board of inspectors, and makes the treasurer, auditor and attorney-general inspectors ex-officio. The board of inspectors are invested with power to make rules for the government, discipline and police of the penitentiary. They have also the power, and it is their duty, from time to time, to inquire and examine into all the matters connected with the government, police and discipline thereof.
The warden has the charge, and custody of the penitentiary prison, with the lands, buildings, tools, implements, stock, provisions, and every other description of property pertaining thereto, belonging to the State; and it is his duty to superintend the internal police and discipline of the penitentiary, as required by the general laws and the rules and regulations prescribed by the inspectors.
The warden is further given authority to employ any of the convicts outside of the prison walls, in making improvements connected with the penitentiary, or at any other labor, under such regulations and restrictions as the inspectors may adopt, when he shall deem it expedient to do so. (Wagn. Stat. 983-5, §§ 2, 5, 6, 17, 25.)
The statute invests the officers above designated with a discretion as to the superintendence and control of the penitentiary and the convicts confined therein. They shall make such rules and regulations as they may deem expedient and proper for the good government thereof, and express authority is given the warden to employ the convicts outside the prison walls in making improvements connected with the penitentiary, or at any other labor, under such regulations and restrictions as the Legislature may adopt. How or in what manner the convicts who are employed outside the prison walls shall be permitted to go at large is *257nowhere specified by the law, hut is left to the‘wise discretion and control of the officers.
Officers acting within the scope of their jurisdiction and in pursuance of discretionary power devolved upon them, will not ordinarily be held responsible for an error of judgment. Discretion implies to a certain extent judicial functions; and where an officer acts in such a capacity, to render him personally liable it must be shown that his decisions were not merely erroneous, but that he acted from a spirit of willfulness, corruption and malice; in other words, that his action was knowingly wrongful, and not according to his honest convictions in respect of his duty. (Reed v. Conway, 29 Mo. 221; Pike v. Megoun, 44 Mo. 491; Caulfield v. Bullock, 18 B. Monr. 494.)
In the well-known case of Wilkes v. Dinsman, 7 How. 89, the Supreme Court of the United States held that an officer invested with certain discretionary powers could not be made answerable for any injury when acting within the scope of his authority and not influenced by malice, corruption or cruelty — that his position was at least quasi official; and it has often been decided, and appears to be well settled, that the acts of a public officer, on public matters within his jurisdiction, and where he has a discretion, are to be presumed legal until shown by others to be unjustifiable. (Gidley v. Palmerston, 7 Moore, 111; Venderhayden v. Young, 11 Johns. 150 ; Martin v. Mott, 12 Wheat. 31.) This is not on the principle merely that innocence and right-doing are to be presumed until the contrary is shown, but that the officer, being intrusted with a discretion for public purposes, is not to be punished for the exercise of it, unless it is first proved against him either that he exercised the power confided in cases without his jurisdiction,/or in a manner not confided to him, as with malice, cruelty or willful oppression, or, in the words of Lord Mansfieldj that he exercised it as if the heart were wrong. (Wall v. McNamara, 2 Carr. & P. 158 and note.)
In Jenkins v. Waldron, 11 Johns. 121, Spencer, J., speaking for the whole court, says : “ It would, in our opinion, be opposed to all the principles of law, justice and sound policy, to hold that officers called upon to exercise their deliberate judgments are *258answerable for a mistake in law, either civilly or criminally, when their motives arc pure and untainted with fraud and malice.”
The averment in the petition is that the defendants “ carelessly, negligently and unlawfully suffered and permitted the convict to go at large, whereby the injury resulted,” etc.
We have seen that it was not unlawful to employ the convict outside of the penitentiary, for the statute expressly gives the authority in certain cases. The allegation of carelessness and negligence is too indefinite and remote. It is not easy to determine whether the pleader intended to apply the terms illegal, negligent and careless to the action of the board in framing rules and regulations for the working of the convicts when outside of the prison walls, or whether they were intended to apply solely to the action of the warden. The warden was the only person who could control them when they were laboring outside. With their personal management the inspectors had nothing to do. If the officers, acting in good faith, merely erred in judgment, in not adopting rules sufficiently stringent for the government and control of the convicts, they would not on that account he held answerable. To hold them liable it would be necessary to aver and prove that they were guilty of either willfulnesss, fraud, malice, or corruption; or that they knowingly acted wrongfully, and not according to their honest convictions of duty.
That they acted within the sphere of their jurisdiction is not disputed, and there is nothing averred showing that they acted from willfulness or a fraudulent or malicious disregard of the rights of others.. Were such the case I have no doubt of their liability, but on the case as presented I think the petition is decidedly defective, and therefore the judgment must be affirmed.
Affirmed.
The other judges concur.