Security to keep the peace, or to be of good behavior, cannot be required except as prescribed in this chapter.