QueryStringMiddlware Set base messages in appsettings.json Run and you should see the not found message Add ?=Hi to the url and you should see the Found message with the "Hi"