When you have 3 other engines…
A British Airways 747, a few years back, had an engine failure shortly after departing LAX and they decided to see how far they could get on 3 engines. They made it to the UK but diverted to Manchester for fuel.
https://en.wikipedia.org/wiki/British_Airways_Flight_268