core/src/main/java/org/nanohttpd/protocols/http/NanoHTTPD.java
@Deprecated
    protected Response serve(IHTTPSession session) {
        return Response.newFixedLengthResponse(Status.NOT_FOUND, NanoHTTPD.MIME_PLAINTEXT, "Not Found");
    }
@Deprecated
    protected Response serve(IHTTPSession session) {
        return Response.newFixedLengthResponse(Status.NOT_FOUND, NanoHTTPD.MIME_PLAINTEXT, "Not Found");
    }
@ Deprecated protected Response serve ( IHTTPSession session ) { return Response . newFixedLengthResponse ( Status . NOT_FOUND , NanoHTTPD . MIME_PLAINTEXT , "Not Found" ) ; }
Override this to customize the server.
<p/>
<p/>
(By default, this returns a 404 "Not Found" plain text error response.)

@param session
The HTTP session
@return HTTP response, see class Response for details
Override this to customize the server . <p / > <p / > ( By default this returns a 404 Not Found plain text error response . )