Run sample:

  • start DemoApplication
  • run curl -v -H "Accept: text/html" http://localhost:8080/status/501 to see the error page generated by the application