The costs of proceedings under this chapter, except when otherwise expressly provided, shall be adjudged as the court or judge may think right, and taxed and collected as in other cases.