title: Make spring boot return 406 instead of 415 with RequestMapping annotation
body: <p>**** EDIT ****</p>
  
  <p>Upon feedback, i am attaching the following disclaimer:</p>
  
  <p>I <strong><em>KNOW</em></strong> that 415 is the normal code and i <strong><em>KNOW</em></strong> the normal conditions that cause it... The API i am implementing specifies this override for some reason and I cant change it because I don't control it</p>
  
  <p>**** END EDIT ****</p>
  
  <p>So I have the following:</p>
  
  <pre><code>@RequestMapping(method = POST, path = "/foo", 
                  consumes = "application/json", produces = "application/json")
  public ResponseEntity&lt;Something&gt; postFoo() {
      return null;
  }
  </code></pre>
  
  <p>When I post a message without the <code>Content-Type</code> header set, I get the expected 415, but I want to change that to return 406 without any boilerplate code. Is that possible? I've searched and searched, but I cant seem to find any docs telling me how to do this.</p>