The Environment Agency (EA) and Department for Environment, Food & Rural Affairs (Defra) have published guidance about when you need an environmental permit to discharge liquid effluent or wastewater to surface water or the ground, and how to apply.
Source: EA and Defra.