title: How to check health of an Endpoint using Rest Template
body: <p>I am trying to create a service in Java and Spring that tests the health a variety of endpoints that do various things like delete accounts, get account data, create accounts etc. My inital approach was to perform a request and check to see if the return code is 200 using <code>RestTemplate</code>. The issue is that when testing things like delete account, i need to have a dummy account to delete, and it gets more complex with accounts that rely on one another. My question is how can I ping the health of an endpoints such as:</p>
  
  <pre><code>https://foobar.com/deleteBar
  </code></pre>
  
  <p>without actually performing a delete or the function of the endpoint?</p>