2012-08-15 107 views
14

道歉,如果这是显而易见的,但我已经搜索周围,无法找到答案。为什么在Web.config中将subStatusCode设置为-1?

.net Web.config文件中,有谁能告诉我subStatusCode到-1的设置是什么?

<httpErrors errorMode="Custom" existingResponse="Replace"> 
     <clear /> 
     <remove statusCode="404" subStatusCode="-1" /> 
     <error statusCode="404" prefixLanguageFilePath="" path="/Error.aspx" responseMode="ExecuteURL" /> 
</httpErrors> 

我的猜测是,它意味着所有的'子'代码,404.1,404.2 ..等?

回答

相关问题