]> source.dussan.org Git - vaadin-framework.git/commitdiff
Use sendError instead of just a status code
authorLeif Åstrand <leif@vaadin.com>
Wed, 4 Jan 2012 07:04:52 +0000 (09:04 +0200)
committerLeif Åstrand <leif@vaadin.com>
Wed, 4 Jan 2012 07:04:52 +0000 (09:04 +0200)
src/com/vaadin/terminal/gwt/server/AbstractApplicationPortlet.java

index fc68a2c14edfa133ae4a3f22bfea61ebe2242e5b..57e257a7cd74c12c0da45288d7d13fdfd2bdebdb 100644 (file)
@@ -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