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.

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

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