A tcl error can be handled setting up an ErrorScript. If the error is raised by 
an abnormal condition you are catching somehow in your code you may call 
'abort_page <abort_code>' which will trigger the code set up in AbortScript. 
Within this script you can check which condition brought about the error using 
the 'abort_code' command that is supposed to return the <abort_code> you passed 
when you fired the exception.

You may also issue a redirect forcing the browser to issue a request for a 
different URL which might create the error page.

See also the 'headers' and 'no_body' commands

-- Massimo
------Messaggio originale------
Da: Georgios Petasis
A:rivet-dev@tcl.apache.org
Rispondi a:petas...@yahoo.gr
Oggetto: How to return an error page?
Inviato: 3 Lug 2012 00:35

Hi all,

I am writing a rest service in Rivet. When an error occurs, how can I 
return an error page?
I have tried "headers numeric 500". Firefox sees that the server 
responded with an internal server error, but I see a blank page.
How can I use the apache default error page?

George

---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org
For additional commands, e-mail: rivet-dev-h...@tcl.apache.org



Le mail ti raggiungono ovunque con BlackBerry® from Vodafone!

Reply via email to