org.webbitserver.handler.NotFoundHttpHandler Maven / Gradle / Ivy
package org.webbitserver.handler;
import org.webbitserver.HttpControl;
import org.webbitserver.HttpHandler;
import org.webbitserver.HttpRequest;
import org.webbitserver.HttpResponse;
public class NotFoundHttpHandler implements HttpHandler {
@Override
public void handleHttpRequest(HttpRequest request, HttpResponse response, HttpControl control) {
response.status(404).end();
}
}