commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marcs...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpStatus.java
Date Mon, 04 Mar 2002 03:24:50 GMT
marcsaeg    02/03/03 19:24:50

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpStatus.java
  Log:
  Added several missing status codes.
  
  Submitted by:  Sean C. Sullivan [sean@seansullivan.com]
  
  Revision  Changes    Path
  1.6       +22 -4     jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpStatus.java
  
  Index: HttpStatus.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpStatus.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- HttpStatus.java	5 Jan 2002 11:16:00 -0000	1.5
  +++ HttpStatus.java	4 Mar 2002 03:24:50 -0000	1.6
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpStatus.java,v
1.5 2002/01/05 11:16:00 vmassol Exp $
  - * $Revision: 1.5 $
  - * $Date: 2002/01/05 11:16:00 $
  + * $Header: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpStatus.java,v
1.6 2002/03/04 03:24:50 marcsaeg Exp $
  + * $Revision: 1.6 $
  + * $Date: 2002/03/04 03:24:50 $
    * ====================================================================
    *
    * The Apache Software License, Version 1.1
  @@ -66,7 +66,7 @@
   
   /**
    * <p>Constants enumerating the HTTP status codes.</p>
  - * @version $Id: HttpStatus.java,v 1.5 2002/01/05 11:16:00 vmassol Exp $
  + * @version $Id: HttpStatus.java,v 1.6 2002/03/04 03:24:50 marcsaeg Exp $
    */
   public class HttpStatus {
   
  @@ -271,14 +271,32 @@
           addStatusCodeMap(SC_REQUEST_TOO_LONG, "Request Too Long");
           addStatusCodeMap(SC_REQUEST_URI_TOO_LONG, "Request-URI Too Long");
           addStatusCodeMap(SC_UNSUPPORTED_MEDIA_TYPE, "Unsupported Media Type");
  +        addStatusCodeMap(SC_MULTIPLE_CHOICES, "Multiple Choices");
  +        addStatusCodeMap(SC_SEE_OTHER, "See Other");
  +        addStatusCodeMap(SC_USE_PROXY, "Use Proxy");
  +        addStatusCodeMap(SC_PAYMENT_REQUIRED, "Payment Required");
  +        addStatusCodeMap(SC_NOT_ACCEPTABLE, "Not Acceptable");
  +        addStatusCodeMap(SC_PROXY_AUTHENTICATION_REQUIRED, 
  +		"Proxy Authentication Required");
  +        addStatusCodeMap(SC_REQUEST_TIMEOUT, 
  +		"Request Timeout");
   
           addStatusCodeMap(SC_SWITCHING_PROTOCOLS, "Switching Protocols");
           addStatusCodeMap(SC_NON_AUTHORITATIVE_INFORMATION,
                            "Non Authoritative Information");
           addStatusCodeMap(SC_RESET_CONTENT, "Reset Content");
  +        addStatusCodeMap(SC_PARTIAL_CONTENT, "Partial Content");
           addStatusCodeMap(SC_GATEWAY_TIMEOUT, "Gateway Timeout");
           addStatusCodeMap(SC_HTTP_VERSION_NOT_SUPPORTED,
                            "Http Version Not Supported");
  +        addStatusCodeMap(SC_GONE,
  +                         "Gone");
  +        addStatusCodeMap(SC_LENGTH_REQUIRED,
  +                         "Length Required");
  +        addStatusCodeMap(SC_REQUESTED_RANGE_NOT_SATISFIABLE,
  +                         "Requested Range Not Satisfiable");
  +        addStatusCodeMap(SC_EXPECTATION_FAILED,
  +                         "Expectation Failed");
   
           // WebDAV Server-specific status codes
           addStatusCodeMap(SC_PROCESSING, "Processing");
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message