【发布时间】:2014-01-28 07:23:45
【问题描述】:
我正在开发在 GlassFish (v3.1.2.2) 下运行的 jsf 2 Web 应用程序。这个应用程序有自定义错误 500 页面,在 web.xml 中定义。我的问题是是否有可能在状态 500 响应的响应标头内禁用/隐藏/自定义错误消息/状态描述?目前我得到这样的东西:
HTTP/1.1 500 /view.xhtml @11,30 [error message same as in root exception] <- I want to hide this one (only message/status description)
X-Powered-By: JSF/2.0
Content-Type: text/html;charset=UTF-8
Transfer-Encoding: chunked
Date: Thu, 09 Jan 2014 15:33:44 GMT
Connection: close
谢谢!
【问题讨论】: