[opencms-dev] Modifying HTTP Response Code

Chema Saga chema.jimenez.saga at gmail.com
Thu Jul 18 14:58:28 CEST 2024


Hello everyone,

How can I modify the response code of a JSP running in OpenCms? I am trying
it this way:
HttpServletResponse topLevelResponse =
CmsFlexController.getController(getRequest()).getTopResponse();
topLevelResponse.setStatus(460);

But the HTTP response code is always 200.
Thank you all
Best regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20240718/7b38d7c8/attachment.htm>


More information about the opencms-dev mailing list