title: Handle error 404 with Spring controller
body: <p>I use <code>@ExceptionHandler</code> to handle exceptions thrown by my web app, in my case my app returns <code>JSON</code> response with <code>HTTP status</code> for error responses to the client.</p>
  
  <p>However, I am trying to figure out how to handle <code>error 404</code> to return a similar JSON response like with the one handled by <code>@ExceptionHandler</code> </p>
  
  <p><strong>Update:</strong></p>
  
  <p>I mean, when a URL that does not exist is accessed</p>