Get Server status

Hello

currently i use the function “server.begin ()” to launch the web server on my arduino and it works very well. However I noticed that after several wifi disconnection the server ended up crashing.
My problem is that I do not see any function to obtain the state of the server or to restart it.
Do you have a solution to offer me?