You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by dk...@apache.org on 2018/07/17 20:13:08 UTC
[sling-org-apache-sling-app-cms] 03/07: Fixed to return the correct
status code
This is an automated email from the ASF dual-hosted git repository.
dklco pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-app-cms.git
commit 75bfb32cc5a16b52d478def7324f0d42556cbc0d
Author: Dan Klco <dk...@apache.org>
AuthorDate: Mon Jul 9 12:59:04 2018 -0400
Fixed to return the correct status code
---
core/src/main/java/org/apache/sling/cms/core/models/ErrorHandler.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/src/main/java/org/apache/sling/cms/core/models/ErrorHandler.java b/core/src/main/java/org/apache/sling/cms/core/models/ErrorHandler.java
index 6d470ce..83acfe7 100644
--- a/core/src/main/java/org/apache/sling/cms/core/models/ErrorHandler.java
+++ b/core/src/main/java/org/apache/sling/cms/core/models/ErrorHandler.java
@@ -107,7 +107,7 @@ public class ErrorHandler {
}
log.debug("Sending error {}",errorCode);
- response.sendError(errorCode);
+ response.setStatus(errorCode);
log.debug("Error handler initialized successfully!");
}