From 911e8c3fbca92014582037d36e9cc0c1ee394747 Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 11 Dec 2007 10:03:48 +0000 Subject: [PATCH] * Set HTTP status code to 500 by default when error action is invoked. --- src/helma/framework/core/RequestEvaluator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/helma/framework/core/RequestEvaluator.java b/src/helma/framework/core/RequestEvaluator.java index 91f3f0d7..a1956dee 100644 --- a/src/helma/framework/core/RequestEvaluator.java +++ b/src/helma/framework/core/RequestEvaluator.java @@ -220,6 +220,7 @@ public final class RequestEvaluator implements Runnable { if (error != null) { // there was an error in the previous loop, call error handler currentElement = root; + res.setStatus(500); // do not reset the requestPath so error handler can use the original one // get error handler action