Section 30. Whoever refuses or neglects to receive and execute a writ of habeas corpus shall forfeit four hundred dollars to the party aggrieved thereby.