F2 error code

My oven heats up but when it gets hot it starts to beep then shuts off and displays the F2 error code.