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.
Get latest updates about Open Source Projects, Conferences and News.