mobile/android/thirdparty/ch/boye/httpclientandroidlib/HttpStatus.java

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mobile/android/thirdparty/ch/boye/httpclientandroidlib/HttpStatus.java	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,175 @@
     1.4 +/*
     1.5 + * ====================================================================
     1.6 + * Licensed to the Apache Software Foundation (ASF) under one
     1.7 + * or more contributor license agreements.  See the NOTICE file
     1.8 + * distributed with this work for additional information
     1.9 + * regarding copyright ownership.  The ASF licenses this file
    1.10 + * to you under the Apache License, Version 2.0 (the
    1.11 + * "License"); you may not use this file except in compliance
    1.12 + * with the License.  You may obtain a copy of the License at
    1.13 + *
    1.14 + *   http://www.apache.org/licenses/LICENSE-2.0
    1.15 + *
    1.16 + * Unless required by applicable law or agreed to in writing,
    1.17 + * software distributed under the License is distributed on an
    1.18 + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    1.19 + * KIND, either express or implied.  See the License for the
    1.20 + * specific language governing permissions and limitations
    1.21 + * under the License.
    1.22 + * ====================================================================
    1.23 + *
    1.24 + * This software consists of voluntary contributions made by many
    1.25 + * individuals on behalf of the Apache Software Foundation.  For more
    1.26 + * information on the Apache Software Foundation, please see
    1.27 + * <http://www.apache.org/>.
    1.28 + *
    1.29 + */
    1.30 +
    1.31 +package ch.boye.httpclientandroidlib;
    1.32 +
    1.33 +/**
    1.34 + * Constants enumerating the HTTP status codes.
    1.35 + * All status codes defined in RFC1945 (HTTP/1.0), RFC2616 (HTTP/1.1), and
    1.36 + * RFC2518 (WebDAV) are listed.
    1.37 + *
    1.38 + * @see StatusLine
    1.39 + *
    1.40 + * @since 4.0
    1.41 + */
    1.42 +public interface HttpStatus {
    1.43 +
    1.44 +    // --- 1xx Informational ---
    1.45 +
    1.46 +    /** <tt>100 Continue</tt> (HTTP/1.1 - RFC 2616) */
    1.47 +    public static final int SC_CONTINUE = 100;
    1.48 +    /** <tt>101 Switching Protocols</tt> (HTTP/1.1 - RFC 2616)*/
    1.49 +    public static final int SC_SWITCHING_PROTOCOLS = 101;
    1.50 +    /** <tt>102 Processing</tt> (WebDAV - RFC 2518) */
    1.51 +    public static final int SC_PROCESSING = 102;
    1.52 +
    1.53 +    // --- 2xx Success ---
    1.54 +
    1.55 +    /** <tt>200 OK</tt> (HTTP/1.0 - RFC 1945) */
    1.56 +    public static final int SC_OK = 200;
    1.57 +    /** <tt>201 Created</tt> (HTTP/1.0 - RFC 1945) */
    1.58 +    public static final int SC_CREATED = 201;
    1.59 +    /** <tt>202 Accepted</tt> (HTTP/1.0 - RFC 1945) */
    1.60 +    public static final int SC_ACCEPTED = 202;
    1.61 +    /** <tt>203 Non Authoritative Information</tt> (HTTP/1.1 - RFC 2616) */
    1.62 +    public static final int SC_NON_AUTHORITATIVE_INFORMATION = 203;
    1.63 +    /** <tt>204 No Content</tt> (HTTP/1.0 - RFC 1945) */
    1.64 +    public static final int SC_NO_CONTENT = 204;
    1.65 +    /** <tt>205 Reset Content</tt> (HTTP/1.1 - RFC 2616) */
    1.66 +    public static final int SC_RESET_CONTENT = 205;
    1.67 +    /** <tt>206 Partial Content</tt> (HTTP/1.1 - RFC 2616) */
    1.68 +    public static final int SC_PARTIAL_CONTENT = 206;
    1.69 +    /**
    1.70 +     * <tt>207 Multi-Status</tt> (WebDAV - RFC 2518) or <tt>207 Partial Update
    1.71 +     * OK</tt> (HTTP/1.1 - draft-ietf-http-v11-spec-rev-01?)
    1.72 +     */
    1.73 +    public static final int SC_MULTI_STATUS = 207;
    1.74 +
    1.75 +    // --- 3xx Redirection ---
    1.76 +
    1.77 +    /** <tt>300 Mutliple Choices</tt> (HTTP/1.1 - RFC 2616) */
    1.78 +    public static final int SC_MULTIPLE_CHOICES = 300;
    1.79 +    /** <tt>301 Moved Permanently</tt> (HTTP/1.0 - RFC 1945) */
    1.80 +    public static final int SC_MOVED_PERMANENTLY = 301;
    1.81 +    /** <tt>302 Moved Temporarily</tt> (Sometimes <tt>Found</tt>) (HTTP/1.0 - RFC 1945) */
    1.82 +    public static final int SC_MOVED_TEMPORARILY = 302;
    1.83 +    /** <tt>303 See Other</tt> (HTTP/1.1 - RFC 2616) */
    1.84 +    public static final int SC_SEE_OTHER = 303;
    1.85 +    /** <tt>304 Not Modified</tt> (HTTP/1.0 - RFC 1945) */
    1.86 +    public static final int SC_NOT_MODIFIED = 304;
    1.87 +    /** <tt>305 Use Proxy</tt> (HTTP/1.1 - RFC 2616) */
    1.88 +    public static final int SC_USE_PROXY = 305;
    1.89 +    /** <tt>307 Temporary Redirect</tt> (HTTP/1.1 - RFC 2616) */
    1.90 +    public static final int SC_TEMPORARY_REDIRECT = 307;
    1.91 +
    1.92 +    // --- 4xx Client Error ---
    1.93 +
    1.94 +    /** <tt>400 Bad Request</tt> (HTTP/1.1 - RFC 2616) */
    1.95 +    public static final int SC_BAD_REQUEST = 400;
    1.96 +    /** <tt>401 Unauthorized</tt> (HTTP/1.0 - RFC 1945) */
    1.97 +    public static final int SC_UNAUTHORIZED = 401;
    1.98 +    /** <tt>402 Payment Required</tt> (HTTP/1.1 - RFC 2616) */
    1.99 +    public static final int SC_PAYMENT_REQUIRED = 402;
   1.100 +    /** <tt>403 Forbidden</tt> (HTTP/1.0 - RFC 1945) */
   1.101 +    public static final int SC_FORBIDDEN = 403;
   1.102 +    /** <tt>404 Not Found</tt> (HTTP/1.0 - RFC 1945) */
   1.103 +    public static final int SC_NOT_FOUND = 404;
   1.104 +    /** <tt>405 Method Not Allowed</tt> (HTTP/1.1 - RFC 2616) */
   1.105 +    public static final int SC_METHOD_NOT_ALLOWED = 405;
   1.106 +    /** <tt>406 Not Acceptable</tt> (HTTP/1.1 - RFC 2616) */
   1.107 +    public static final int SC_NOT_ACCEPTABLE = 406;
   1.108 +    /** <tt>407 Proxy Authentication Required</tt> (HTTP/1.1 - RFC 2616)*/
   1.109 +    public static final int SC_PROXY_AUTHENTICATION_REQUIRED = 407;
   1.110 +    /** <tt>408 Request Timeout</tt> (HTTP/1.1 - RFC 2616) */
   1.111 +    public static final int SC_REQUEST_TIMEOUT = 408;
   1.112 +    /** <tt>409 Conflict</tt> (HTTP/1.1 - RFC 2616) */
   1.113 +    public static final int SC_CONFLICT = 409;
   1.114 +    /** <tt>410 Gone</tt> (HTTP/1.1 - RFC 2616) */
   1.115 +    public static final int SC_GONE = 410;
   1.116 +    /** <tt>411 Length Required</tt> (HTTP/1.1 - RFC 2616) */
   1.117 +    public static final int SC_LENGTH_REQUIRED = 411;
   1.118 +    /** <tt>412 Precondition Failed</tt> (HTTP/1.1 - RFC 2616) */
   1.119 +    public static final int SC_PRECONDITION_FAILED = 412;
   1.120 +    /** <tt>413 Request Entity Too Large</tt> (HTTP/1.1 - RFC 2616) */
   1.121 +    public static final int SC_REQUEST_TOO_LONG = 413;
   1.122 +    /** <tt>414 Request-URI Too Long</tt> (HTTP/1.1 - RFC 2616) */
   1.123 +    public static final int SC_REQUEST_URI_TOO_LONG = 414;
   1.124 +    /** <tt>415 Unsupported Media Type</tt> (HTTP/1.1 - RFC 2616) */
   1.125 +    public static final int SC_UNSUPPORTED_MEDIA_TYPE = 415;
   1.126 +    /** <tt>416 Requested Range Not Satisfiable</tt> (HTTP/1.1 - RFC 2616) */
   1.127 +    public static final int SC_REQUESTED_RANGE_NOT_SATISFIABLE = 416;
   1.128 +    /** <tt>417 Expectation Failed</tt> (HTTP/1.1 - RFC 2616) */
   1.129 +    public static final int SC_EXPECTATION_FAILED = 417;
   1.130 +
   1.131 +    /**
   1.132 +     * Static constant for a 418 error.
   1.133 +     * <tt>418 Unprocessable Entity</tt> (WebDAV drafts?)
   1.134 +     * or <tt>418 Reauthentication Required</tt> (HTTP/1.1 drafts?)
   1.135 +     */
   1.136 +    // not used
   1.137 +    // public static final int SC_UNPROCESSABLE_ENTITY = 418;
   1.138 +
   1.139 +    /**
   1.140 +     * Static constant for a 419 error.
   1.141 +     * <tt>419 Insufficient Space on Resource</tt>
   1.142 +     * (WebDAV - draft-ietf-webdav-protocol-05?)
   1.143 +     * or <tt>419 Proxy Reauthentication Required</tt>
   1.144 +     * (HTTP/1.1 drafts?)
   1.145 +     */
   1.146 +    public static final int SC_INSUFFICIENT_SPACE_ON_RESOURCE = 419;
   1.147 +    /**
   1.148 +     * Static constant for a 420 error.
   1.149 +     * <tt>420 Method Failure</tt>
   1.150 +     * (WebDAV - draft-ietf-webdav-protocol-05?)
   1.151 +     */
   1.152 +    public static final int SC_METHOD_FAILURE = 420;
   1.153 +    /** <tt>422 Unprocessable Entity</tt> (WebDAV - RFC 2518) */
   1.154 +    public static final int SC_UNPROCESSABLE_ENTITY = 422;
   1.155 +    /** <tt>423 Locked</tt> (WebDAV - RFC 2518) */
   1.156 +    public static final int SC_LOCKED = 423;
   1.157 +    /** <tt>424 Failed Dependency</tt> (WebDAV - RFC 2518) */
   1.158 +    public static final int SC_FAILED_DEPENDENCY = 424;
   1.159 +
   1.160 +    // --- 5xx Server Error ---
   1.161 +
   1.162 +    /** <tt>500 Server Error</tt> (HTTP/1.0 - RFC 1945) */
   1.163 +    public static final int SC_INTERNAL_SERVER_ERROR = 500;
   1.164 +    /** <tt>501 Not Implemented</tt> (HTTP/1.0 - RFC 1945) */
   1.165 +    public static final int SC_NOT_IMPLEMENTED = 501;
   1.166 +    /** <tt>502 Bad Gateway</tt> (HTTP/1.0 - RFC 1945) */
   1.167 +    public static final int SC_BAD_GATEWAY = 502;
   1.168 +    /** <tt>503 Service Unavailable</tt> (HTTP/1.0 - RFC 1945) */
   1.169 +    public static final int SC_SERVICE_UNAVAILABLE = 503;
   1.170 +    /** <tt>504 Gateway Timeout</tt> (HTTP/1.1 - RFC 2616) */
   1.171 +    public static final int SC_GATEWAY_TIMEOUT = 504;
   1.172 +    /** <tt>505 HTTP Version Not Supported</tt> (HTTP/1.1 - RFC 2616) */
   1.173 +    public static final int SC_HTTP_VERSION_NOT_SUPPORTED = 505;
   1.174 +
   1.175 +    /** <tt>507 Insufficient Storage</tt> (WebDAV - RFC 2518) */
   1.176 +    public static final int SC_INSUFFICIENT_STORAGE = 507;
   1.177 +
   1.178 +}

mercurial