IIS 7 and Above
411 error page
Last post May 14, 2019 12:15 AM by jisun.lim
May 10, 2019 02:27 AM|jisun.lim|LINK
I want to remove default 411 error page, and show custom error page.
I try to add 411 error cod on "error page", but it doesn't work.
I think 411 error page looks different with other error page like 404, so I guess the solution may be different.
Please give me some advice!!
Here is the response from server.
HTTP/1.1 411 Length Required
Content-Type: text/html; charset=us-ascii
Date: Fri, 03 May 2019 14:35:11 GMT
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<hr><p>HTTP Error 411. The request must be chunked or have a content length.</p>
Thank you. Have a nice day!
May 10, 2019 06:12 AM|lextm|LINK
May 13, 2019 09:54 AM|Able|LINK
According to your description, In normally we couldn't customize the following Http errors:400,403,411,414,500,500.14,501 and 505.This error is not need to customize.
However if you still wants to customize this error , you could just add below code in your web.config file of your web application, it could direct all http errors to the page you want.
You could see as below:
<customErrors defaultRedirect="http://localhost:xxx/about" mode="On">
Here is the link, I hope it could help you.
May 14, 2019 12:15 AM|jisun.lim|LINK
Thank you!! :)