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

Azure - Check Invitation Status to guest user

Advice for breaking into the DevOps field

Blogs for Azure Information