Neither I guess, it's a bug in the example.
In NT4 the code was in the WebServer procedure, and would have been fine, but in NT5 it was moved to the WebHandler (so that it would work when the app is used under the multi-site host.)
The WebHandler though needs a couple more lines, so
ReturnValue = '<html><head><title>' & p_ErrorNumber & ' ' & clip(p_ErrorString) & '</title><13,10>' & |
becomes
self.HeaderDetails.ResponseNumber = '404'
self.HeaderDetails.ResponseString = 'Page Not Found'
ReturnValue = self.CreateHeader(self.HeaderDetails) & '<13,10>' & |
'<html><head><title>' & p_ErrorNumber & ' ' & clip(p_ErrorString) & '</title><13,10>' & |
ie, a couple lines before to set the HeaderDetails, and the Header itself prepended to the text of the error.
I'll update the example for the 6.28 build - thanks for the report.
cheers
Bruce