How to simulate an HTTP 500 error on my ASP.NET app?

前端 未结 6 2026
甜味超标
甜味超标 2020-12-29 04:37

I want to simulate this error so I can check a generic error page is displayed, not the HTTP 500 one, in light of the recent security vulnerability.

We include speci

6条回答
  •  抹茶落季
    2020-12-29 05:10

    This generate a custom http error code in classic asp.

    <%@language=Jscript%>
    
    <%
        Response.Status = "996 TerraNova GeoWeb Internal Server Error";
        Response.End;
    %>
    

提交回复
热议问题