Web app router prints exception details and gives status code 500 when exception occurs