i was driving my car on the beltway when i noticed the oil check light came on on 2004 Toyota Corolla

a few minutes later the engine check light came on then the car just shuts down on me what can possibliy can this problem, do i have to worry about having to replace the engine?

Asked by for the 2004 Toyota Corolla
check your oil and top up then have it scan tested for codes did the engine overheat?