views:

51

answers:

2

What is httpContext.Response.SubStatusCode for? this value is part of the IIS integration mode pipeline.

A: 

It gives you status code of the http response. For more details check HttpResponse.SubStatusCode and Troubleshooting Failed Requests Using Tracing in IIS 7

Incognito
Can you elaborate more? I sew this links before asking.
stacker
+3  A: 

Substatus is a category within the main status code which provides a little more information about the nature of the condition raising the main status code.

For example, error 401 (unauthorised) has several substatus codes:

401.1 - Logon failed.
401.2 - Logon failed due to server configuration.
401.3 - Unauthorized due to ACL on resource.
401.4 - Authorization failed by filter.
401.5 - Authorization failed by ISAPI/CGI application.

The full reference for HTTP status and substatus codes in IIS 7 is here

Neil Moss
Always wondered how to set these...
JoeGeeky