搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Is there any problem in showing custom error page for Erro code 408 with Firefox?

  • 無回覆
  • 4 有這個問題
  • 5 次檢視
more options

I want to capture Http error codes like 400,404,408. I have written a custom JSP (called as error.jsp)which contains the error message containing more than 512 characters. I have configured error codes in web.xml with the error codes as follows:

<error-page> <error-code>408</error-code> <location>/errorPages/error.jsp</location> </error-page> <error-page> <error-code>400</error-code> <location>/errorPages/error.jsp</location> </error-page>

This shows me my custom error page for all the error codes for browser like IE and Google Chrome. For firefox it shows me the custom error page for error code 400 but it does not show me custom error page for error code 408, rather it shows the following error:

The connection to the server was reset while the page was loading. How to get the custom error page for error 408 in Firefox.

I want to capture Http error codes like 400,404,408. I have written a custom JSP (called as error.jsp)which contains the error message containing more than 512 characters. I have configured error codes in web.xml with the error codes as follows: <error-page> <error-code>408</error-code> <location>/errorPages/error.jsp</location> </error-page> <error-page> <error-code>400</error-code> <location>/errorPages/error.jsp</location> </error-page> This shows me my custom error page for all the error codes for browser like IE and Google Chrome. For firefox it shows me the custom error page for error code 400 but it does not show me custom error page for error code 408, rather it shows the following error: '''The connection to the server was reset while the page was loading. ''' How to get the custom error page for error 408 in Firefox.