I remember it as being illegal to coast, along with having your headlights on whilst parked. It seems the highway code has been dumbed down somewhat these days.
https://www.gov.uk/guidance/the-highway-code/general-rules-techniques-and-advice-for-all-drivers-and-riders-103-to-158