AnsweredAssumed Answered

404 related files for webscripts.

Question asked by explorer on Aug 21, 2007
Latest reply on Aug 22, 2007 by explorer
Hi,
I am a newbie, i looked at a couple of examples for creating webscripts and i could see that…

in the .js file we declare this:

if (folder == undefined || !folder.isContainer)
{
   status.code = 404;
   status.message = "Folder " + url.extension + " not found.";
   status.redirect = true;
}
model.folder = folder;

and have a relative 404 file.

File: blogsearch.get.html.404.ftl

<html>
  <body>
    ${status.message}
  </body>
</html>

Can anyone explain the relation between them if any.
If not, whats the purpose of the 404.ftl file…

Thanks in advance…

Outcomes