From: Leif Åstrand Date: Wed, 4 Jan 2012 07:04:52 +0000 (+0200) Subject: Use sendError instead of just a status code X-Git-Tag: 7.0.0.alpha2~541^2~13 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=634db57f243e9107bca3362ffd21eaa9d0d7f7b7;p=vaadin-framework.git Use sendError instead of just a status code --- 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