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


   1:         } catch (URIException ex) {
   2:             SimpleResponse response = ErrorResponse.getResponse(HttpStatus.SC_BAD_REQUEST);
   3:             conn.writeResponse(response);
   4:         ...
   5:         } catch (HttpException e) {
   6:             SimpleResponse response = ErrorResponse.getResponse(HttpStatus.SC_BAD_REQUEST);
   7:             conn.writeResponse(response);
   8:             proxyconn.setKeepAlive(false);
   9:         } catch (IOException e) {

View Full Code Here
   1:             if (auth == null) { 
   2:                 response.setStatusLine(ver, HttpStatus.SC_BAD_REQUEST);
   3:                 response.setBodyString("Authorization header missing");
   4:         ...
   5:                 } else {
   6:                     response.setStatusLine(ver, HttpStatus.SC_BAD_REQUEST);
   7:                     response.setBodyString("Unknown auth type: " + authstr);
   8:                     return true;
   9:                 }

View Full Code Here