Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Jonathan Ellis <jonathan@ca...> - 2005-09-02 16:14:48
On Tue, 23 Aug 2005 14:08:24 +0200, "Jaroslaw Zabiello"
> How to set up spyce web server for redirecting all not found files to
> my specific file? More general, I would like to catch all files with
> http response code != 200.
Set the errorhandler in your spyceconf to a function that does what you
want. The handler is passed an exception indicating what happened,
e.g., spyceNotFound for a 404. See modules/error.py to see what the
default handler looks like.
If you want to catch runtime errors (i.e., errors that happen after a
Spyce file was selected & compiled), you'll want to customize
pageerrortemplate in spyceconf as well.