I have a custom error logic written in 404.jsp. In this file I have wrote a response.sendRedirect(< My Custom Error Page>);
When landing on the customized error page, the response status is 200. I have a separate template for my 404 page. I tried to set <% response.setStatus(404);%> in the content.jsp of that template but still the response status is 200.
I need this customized error page to return a 404 status.
Thanks in advance !!