Flows of Herschel-Bulkley fluids in confined environments