This commit is contained in:
imhao183
2021-04-23 08:45:31 +08:00
parent b4fe064807
commit 5028a64fa9
79 changed files with 82 additions and 82 deletions
@@ -27,7 +27,7 @@ public class NotFoundAction extends Action{
private final static String TEMPLATE_ERROR = "<!DOCTYPE html><html><head><title>LoServer - Error report</title><style>h1,h3 {color:white; background-color: gray;}</style></head><body><h1>HTTP Status {} - {}</h1><hr size=\"1\" noshade=\"noshade\" /><p>{}</p><hr size=\"1\" noshade=\"noshade\" /><h3>LoServer</h3></body></html>";
@Override
public boolean action(Request request, Response response) {
public boolean action(Request request) {
response.sendError(HttpResponseStatus.NOT_FOUND, "404 Not found!");
return true;
}