title: Whitelabel error page in spring boot (type=Bad Request, status=400)
body: <p>I am running Spring Boot application on the local machine on the port 8080. The application is starting successfully and I can test it through Postman. But when I try to access it from the browser, it gives me a whitelabel error page.</p>
  <p>My request mapping in the controller is:</p>
  <pre class="lang-java prettyprint-override"><code> @RequestMapping(value = &quot;/billing-file-generation&quot;,
          produces = {&quot;application/json&quot;},
          method = RequestMethod.GET) 
  </code></pre>
  <p>Also, I tried handling it with <code>Errorhandlercontroller</code> and couldn't fix the issue or get any idea about the issue, instead I could just customize the error message instead of whitelabel error page.</p>
  <p>Any idea why this is happening? I have attched the error in the below image.</p>
  <p><a href="https://i.stack.imgur.com/6YK4O.png" rel="nofollow noreferrer">Whitelabel error page</a></p>