title: Handle Exceptions when using @RequestHeader in spring application
body: <p>Here is my Java code that uses the Spring Framework:</p>
  
  <pre><code>@RequestMapping(method = RequestMethod.POST)
  public @ResponseBody String SampleFunction(@RequestHeader("Authorization") String details)
  {
      System.out.println("Authorization details recieved");
  
  }
  </code></pre>
  
  <p>I am trying to access <code>Authorization</code> header.  I want to handle the missing <code>Authorization</code> header by redirecting it to a 400 Bad Request page. How can I do this?</p>