Return 404 Not Found

Does anyone know how to return a 404/Not found error to the browser?

The best I’ve been able to come up with is ShowURL("NotFound") but that still shows “NotFound” in the browser’s address.


Just out of curiosity, why would you want to do this?

I’ve got a web database that is really specific to the individuals invited, and the Page ‘identifier’ is obfuscated.
The only valid access is via one of the tokens. I’d like to return a ‘404’ if someone goes ‘looking’ for other records, or even the default index page. I was thinking it would work as a minor stealth cover and bot-stopper.

You could redirect them to /api or /special and change the status to 404 in the App.HandleSpecialUrl event.