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

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -