java - Override HTTP status code for tomcat error page configuration -
tomcat allows specify error pages different error codes,
<error-page> <location>/error.html</location> </error-page>
but response code remains same. i'm looking option override status code 200 in catch-all error page.
one option have error.jsp , set error code, wanted know if tomcat supports such configuration out of box.
edit: modified error.html error.jsp , sending 200 status code.
<% response.setstatus(200); %>
Comments
Post a Comment