Tip 0003: ASP page to emulate server response codes

This is a handy page to emulate a response code on the server. This is useful for testing your custom error pages, either from IIS or Cloudflare.

https://gist.github.com/blarsonrp/fa373cd9a562d91d9a42419a34a24a7a


<html>
<%@ Page Language="C#" AutoEventWireup="true"%>
<script runat="server">
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
this.Response.StatusCode = 418;
Response.TrySkipIisCustomErrors = true;
}
</script>
</html>

Comments

Popular posts from this blog

Blogs for Azure Information

Azure - Check Invitation Status to guest user

Azure Point to Site VPN failure with error code 809