Description of problem: When I add code[1] in APortlet.serveResource(), EPP doesn't return status code 404 and adds portlet.http-status-code header[2]. This issue was fixed in upstream[3]. So please backport to EPP 5.2.x [1] OutputStream outStream = response.getPortletOutputStream(); response.setProperty(response.HTTP_STATUS_CODE, "404"); outStream.write("404".getBytes("Shift_JIS")); outStream.flush(); outStream.close(); [2] Status=OK - 200 portlet.http-status-code=404 [3] https://issues.jboss.org/browse/GTNPORTAL-2351