servlet errors should be code 500

This commit is contained in:
Jay McCarthy 2012-08-02 07:03:11 -06:00
parent f2e0e0bfeb
commit 56b2e0754f
2 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,7 @@
(define (pretty-exception-response url exn)
(response/xexpr
#:code 500
`(html
(head
(title "Servlet Error")

View File

@ -158,6 +158,7 @@
(lambda (exn)
(send/finish-or-back
(response/xexpr
#:code 500
`(html (head (title "Servlet Error"))
(body ([bgcolor "white"])
(p "The following error occured: "