code: protected void notFound(HttpServletRequest request,
                    HttpServletResponse response)
          throws IOException
      {
          if(log.isDebugEnabled())log.debug("Not Found "+request.getRequestURI());
          String method=request.getMethod();
              
          // Not found special requests.
          if (method.equals(HttpRequest.__GET)    ||
              method.equals(HttpRequest.__HEAD)   ||
              method.equals(HttpRequest.__POST))
          {
              response.sendError(HttpResponse.__404_Not_Found);
          }
          else if (method.equals(HttpRequest.__TRACE))
              handleTrace(request,response);
          else if (method.equals(HttpRequest.__OPTIONS))
              handleOptions(request,response);
          else
          {
              // Unknown METHOD
              response.setHeader(HttpFields.__Allow,__AllowString);
              response.sendError(HttpResponse.__405_Method_Not_Allowed);
          }
      }
docs: /* ------------------------------------------------------------