diff --git a/wicketstuff-restannotations-parent/restannotations/src/main/java/org/wicketstuff/rest/resource/AbstractRestResource.java b/wicketstuff-restannotations-parent/restannotations/src/main/java/org/wicketstuff/rest/resource/AbstractRestResource.java index 7237fefdb8..2a850a9b3c 100644 --- a/wicketstuff-restannotations-parent/restannotations/src/main/java/org/wicketstuff/rest/resource/AbstractRestResource.java +++ b/wicketstuff-restannotations-parent/restannotations/src/main/java/org/wicketstuff/rest/resource/AbstractRestResource.java @@ -646,8 +646,11 @@ private Object invokeMappedMethod(Method method, List parametersValues, WebRe */ protected void handleException(WebResponse response, Exception exception) { + String exceptionMsg = "General server error."; + response.setStatus(500); - response.write("General server error."); + response.write(exceptionMsg); + log.error(exceptionMsg, exception); } /**