From 634db57f243e9107bca3362ffd21eaa9d0d7f7b7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Wed, 4 Jan 2012 09:04:52 +0200 Subject: [PATCH] Use sendError instead of just a status code --- .../vaadin/terminal/gwt/server/AbstractApplicationPortlet.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/vaadin/terminal/gwt/server/AbstractApplicationPortlet.java b/src/com/vaadin/terminal/gwt/server/AbstractApplicationPortlet.java index fc68a2c14e..57e257a7cd 100644 --- a/src/com/vaadin/terminal/gwt/server/AbstractApplicationPortlet.java +++ b/src/com/vaadin/terminal/gwt/server/AbstractApplicationPortlet.java @@ -748,7 +748,8 @@ public abstract class AbstractApplicationPortlet extends GenericPortlet if (requestType == RequestType.APPLICATION_RESOURCE || requestType == RequestType.RENDER) { if (!applicationManager.handleApplicationRequest(request, response)) { - response.setStatus(404); + response.sendError(HttpServletResponse.SC_NOT_FOUND, + "Not found"); } } else if (requestType == RequestType.EVENT) { // nothing to do, listeners do all the work -- 2.39.5