Response response) throws HandlerException {
log.info("Sending errorpage for: " + request.getRequestURI());
response.setResponseStatus(ResponseStatus.NOT_FOUND);
// TODO make sure the response in longer than 512 bytes to avoid IE
// friendly messages
handlerContext.perform(new RequestWrapper(request) {
public RequestURI getRequestURI() throws HandlerException {
return new RequestURIWrapper(super.getRequestURI()) {
public String getPath() {
return "/error/404";
}