title: How to redirect HTTP Status 405 - Request method 'GET' not supported to another page
body: <p>I am building an application and I want to do a validation in which when user tries to access a POST method he should be redirected to a new Page. For example when I Login, the username and password validations are done in the post method that has </p>
  
  <pre><code>    @RequestMapping(value = "/firstPage.htm", method = RequestMethod.POST)
  </code></pre>
  
  <p>So what I want to do is if user saves this link xyz.../firstPage.htm after the application is closed by pasting it in browser url, he should not get 405 error instead he should be redirected to another page that says You are not Authenticated to view this page. </p>
  
  <p>How do I do this?</p>
  
  <p>Regards,</p>
  
  <p>Zingo</p>