~PicLan-IP/BASIC { } R.ERR = '404 NOT FOUND;The specified page was not found.' RETURN
~PicLan-IP/BASIC { } R.ERR = '404 NOT FOUND'To use another page's HTML code, you would include code such as:
~PicLan-IP/BASIC { } CALL PLW.PAGE('/errors/err.htm','','',RESX) R.ERR = '404 NOT FOUND' RETURN
If you wish to return a 302 FOUND error code, you will also need to include the HTTP header fields required so that the browser will automatically follow the link forward. You do this by including the following lines in your BASIC code:
PL_ADD_HDR 'Location: http://modsoft.com/xyz.htm'This example assumes that the new page location is 'http://modsoft.com/xyz.htm'.