how to add nginx custom health check

I have nginx configuration for http load balancer that work fine. I would like to add health check that calls specific url that returns response 200- OK , any other response means error.
how can i add this custom health check.
thanks in advance!

Go to Source
Author: A_G