title: Best approach to redirect an URL using REST
body: <p>Can anyone suggest me which is the best approach to redirect an URL using REST among the below two ways:</p>
  
  <pre><code>1. httpResponse.sendRedirect("URL");
  2. Response.temporaryRedirect(new URI("path"));
  </code></pre>