How to create a url in a wordpress that will return code 200?

Solution 1:

You can use your WordPress installation front page for the health check. This is the most reliable indicator that the WordPress site is available.

Solution 2:

For what it's worth, I had to set-up a WordPress site in a container and get a health check to succeed before I could even get traffic directed to it. The suggestions for the "front page" work only AFTER WordPress has been installed through the browser. Prior to that they return a 302 status code to /wp-admin/install.php. I noodled around in the container folders and decided on using /wp-includes/images/blank.gif as the health check path. This allowed the health check to succeed and traffic started routing to the container. From there I installed WordPress through the browser and was able to change the health check path back to /.