I want to send error code as response from jsp custom tag but it doesn't work. Currently it looks like this:
try {
response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
} catch (IOException e) {
LOGGER.error("Couldn't send error response code.", e);
}
return SKIP_PAGE;