Demos and Usage of org.apache.commons.httpclient.HttpStatus.HttpStatus.SC_NOT_FOUND


   1:             SimpleResponse response = new SimpleResponse();
   2:             response.setStatusLine(ver, HttpStatus.SC_NOT_FOUND);
   3:             response.setHeader(new Header("Server", "test proxy"));
   4:             response.setBodyString("Cannot connect to " + line.getUri());
   5:             conn.writeResponse(response);

View Full Code Here
   1:             } else {
   2:                 response.setStatusLine(httpversion, HttpStatus.SC_NOT_FOUND);
   3:                 response.setBodyString(uri + " not found");
   4:             }
   5:             return true;

View Full Code Here
   1:         } catch (UnknownHostException e) {
   2:             SimpleResponse response = ErrorResponse.getResponse(HttpStatus.SC_NOT_FOUND);
   3:             conn.writeResponse(response);
   4:             return;
   5:         }

View Full Code Here