Until judgment is given upon the return, the party may either be committed to the custody of the sheriff of the county, or placed in such care or custody as age and other circumstances may require.