I need a php script that checks if a site built on drupal framework is correctly running or not. Things to check will be:
1.) mysql connection is up
2.) the page loads up fine
3.) the site also consumes a web service via a Rest API and includes the output on the homepage, need to check if the Rest API is running fine
If all checks pass then return a 200 response code, if there is an error return some other response code other than 200.