Wednesday, December 5, 2018

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>

No comments:

Post a Comment

Azure Point to Site VPN failure with error code 809

I ran into some trouble today troubleshooting a developer's workstation. The issue was when using a Point to Site IKEV2 VPN some clients...