returns 500 code when the application raises an exception