}
}
ServerResponse response = new ServerResponse();
response.setStatus(HttpResponseCodes.SC_UNAUTHORIZED);
Headers headers = new Headers();
headers.add("Content-Type", "text/plain");
headers.add("WWW-Authenticate", "BASIC realm=\"users\"");
response.setMetadata(headers);
response.setEntity("Error 401 Unauthorized: "
+ request.getPreprocessedPath());
return response;
}