How to force redirect HTTP 400 error in Windows Server. HTTP.SYS or IIS layers

I want to know how to force redirect error page for HTTP 400 Request Error in Windows Server. HTTP.SYS or IIS layers As far as I know, IIS only supports 400. Is there any basic level way for HTTP 400. Wrong error redirection? or get some call from http.sys kernel if 400 error occurs?

Update notes:
- According to TechNet Art , the following HTTP errors cannot be configured: 400, 403.9, 411, 414, 500, 500.11, 500.14, 500.15, 501, 503, and 505 in IIS

- Peter Quest: for me, the answer comes from the server: Microsoft-HTTPAPI / 2.0

+1
windows-server iis
Aug 15 '15 at 4:33
source share
1 answer

It seems you are quoting a TechNet article:

You cannot configure the following HTTP error messages: 400, 403.9, 411, 414, 500, 500.11, 500.14, 500.15, 501, 503, and 505.

This is only true if the response comes from http.sys, you can tell by looking at the response headers:

Server:Microsoft-HTTPAPI/2.0 

comes from http.sys, and IIS sends:

 Server:Microsoft-IIS/XX.X 

If the response is from http.sys, you cannot do anything about the error.

But if IIS comes back, you should be able to define a custom error page, as with any other http status.

+2
Aug 15 '15 at 7:23
source



All Articles