gov.uk/guidance/the-highway … 159-to-203
Many of the rules in the Code are legal requirements, and if you disobey these rules you are committing a criminal offence. You may be fined, given penalty points on your licence or be disqualified from driving. In the most serious cases you may be sent to prison. Such rules are identified by the use of the words ‘MUST/MUST NOT’. In addition, the rule includes an abbreviated reference to the legislation which creates the offence. See an explanation of the abbreviations.
Although failure to comply with the other rules of the Code will not, in itself, cause a person to be prosecuted, The Highway Code may be used in evidence in any court proceedings under the Traffic Acts (see The road user and the law) to establish liability. This includes rules which use advisory wording such as ‘should/should not’ or ‘do/do not’.
Rule 165
You MUST NOT overtake
if you would have to cross or straddle double white lines with a solid line nearest to you (but see Rule 129)
if you would have to enter an area designed to divide traffic, if it is surrounded by a solid white line
the nearest vehicle to a pedestrian crossing, especially when it has stopped to let pedestrians cross
if you would have to enter a lane reserved for buses, trams or cycles during its hours of operation
after a ‘No Overtaking’ sign and until you pass a sign cancelling the restriction.
Laws RTA 1988 sect 36 & TSRGD schedule 1, schedule 9 part 7, schedule 14 part 1
Rule 167
DO NOT overtake where you might come into conflict with other road users. For example
approaching or at a road junction on either side of the road
where the road narrows
when approaching a school crossing patrol
on the approach to crossing facilities
where a vehicle ahead is slowing to stop for a pedestrian that is crossing from a pedestrian island (see Rule 165)
between the kerb and a bus or tram when it is at a stop
where traffic is queuing at junctions or road works
when you would force another road user to swerve or slow down
at a level crossing
when a road user is indicating right, even if you believe the signal should have been cancelled. Do not take a risk; wait for the signal to be cancelled
stay behind if you are following a cyclist approaching a roundabout or junction, and you intend to turn left. Do not cut across cyclists going ahead, including those using cycle lanes and cycle tracks (see Rule H3)
stay behind if you are following a horse rider or horse drawn vehicle approaching a roundabout or junction, and you intend to turn left. Do not cut across a horse rider or horse drawn vehicle going ahead
when a tram is standing at a kerbside tram stop and there is no clearly marked passing lane for other traffic
Rule 191
You MUST NOT park on a crossing or in the area covered by the zig-zag lines. You MUST NOT overtake the moving vehicle nearest the crossing or the vehicle nearest the crossing which has stopped to give way to pedestrians.
Laws RTRA sect 25(5) & TSRGD schedule 14 parts 1 and 5
Highlights are mine.
If you follow links Highway Code they have some further links …(including some links to tourist signs!)