I want to suppress the stack trace shown by tomcat when 500 internal server is occurred. I have included a custom error.html page and mentioned the file location and error-code in web.xml.
<error-page>
<error-code>500</error-code>
<location>/error.html</location>
</error-page>
After making the above changes , for all the API's tomcat is returning 404 Not Found.