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 ..等?