On Mon, 15 Jan 2007 20:53:26 +0100, Nicolas Lamirault lam@tuxfamily.org wrote:
i would like to define a web page when someone try to access an unknown page :
;; (defun handle-error () ;; "Modify the Hunchentoot error dispatcher." ;; (make-web-page #p"error.html"))
and in the init file :
;;(setf hunchentoot:*http-error-handler* 'handle-error)
http://weitz.de/hunchentoot/#*http-error-handler*
"[...] a function designator for a function of one argument [...]"
i remove this code from my web service and i haven't got any error with my redirect test !
Sure:
"The function gets called if the responsible handler has set a return code other than +HTTP-OK+ or +HTTP-NOT-MODIFIED+ and *HANDLE-HTTP-ERRORS-P* is true."