Wed, 31 Dec 2014 07:22:50 +0100
Correct previous dual key logic pending first delivery installment.
1 /*
2 * ====================================================================
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 * ====================================================================
20 *
21 * This software consists of voluntary contributions made by many
22 * individuals on behalf of the Apache Software Foundation. For more
23 * information on the Apache Software Foundation, please see
24 * <http://www.apache.org/>.
25 *
26 */
28 package ch.boye.httpclientandroidlib;
30 /**
31 * Constants enumerating the HTTP status codes.
32 * All status codes defined in RFC1945 (HTTP/1.0), RFC2616 (HTTP/1.1), and
33 * RFC2518 (WebDAV) are listed.
34 *
35 * @see StatusLine
36 *
37 * @since 4.0
38 */
39 public interface HttpStatus {
41 // --- 1xx Informational ---
43 /** <tt>100 Continue</tt> (HTTP/1.1 - RFC 2616) */
44 public static final int SC_CONTINUE = 100;
45 /** <tt>101 Switching Protocols</tt> (HTTP/1.1 - RFC 2616)*/
46 public static final int SC_SWITCHING_PROTOCOLS = 101;
47 /** <tt>102 Processing</tt> (WebDAV - RFC 2518) */
48 public static final int SC_PROCESSING = 102;
50 // --- 2xx Success ---
52 /** <tt>200 OK</tt> (HTTP/1.0 - RFC 1945) */
53 public static final int SC_OK = 200;
54 /** <tt>201 Created</tt> (HTTP/1.0 - RFC 1945) */
55 public static final int SC_CREATED = 201;
56 /** <tt>202 Accepted</tt> (HTTP/1.0 - RFC 1945) */
57 public static final int SC_ACCEPTED = 202;
58 /** <tt>203 Non Authoritative Information</tt> (HTTP/1.1 - RFC 2616) */
59 public static final int SC_NON_AUTHORITATIVE_INFORMATION = 203;
60 /** <tt>204 No Content</tt> (HTTP/1.0 - RFC 1945) */
61 public static final int SC_NO_CONTENT = 204;
62 /** <tt>205 Reset Content</tt> (HTTP/1.1 - RFC 2616) */
63 public static final int SC_RESET_CONTENT = 205;
64 /** <tt>206 Partial Content</tt> (HTTP/1.1 - RFC 2616) */
65 public static final int SC_PARTIAL_CONTENT = 206;
66 /**
67 * <tt>207 Multi-Status</tt> (WebDAV - RFC 2518) or <tt>207 Partial Update
68 * OK</tt> (HTTP/1.1 - draft-ietf-http-v11-spec-rev-01?)
69 */
70 public static final int SC_MULTI_STATUS = 207;
72 // --- 3xx Redirection ---
74 /** <tt>300 Mutliple Choices</tt> (HTTP/1.1 - RFC 2616) */
75 public static final int SC_MULTIPLE_CHOICES = 300;
76 /** <tt>301 Moved Permanently</tt> (HTTP/1.0 - RFC 1945) */
77 public static final int SC_MOVED_PERMANENTLY = 301;
78 /** <tt>302 Moved Temporarily</tt> (Sometimes <tt>Found</tt>) (HTTP/1.0 - RFC 1945) */
79 public static final int SC_MOVED_TEMPORARILY = 302;
80 /** <tt>303 See Other</tt> (HTTP/1.1 - RFC 2616) */
81 public static final int SC_SEE_OTHER = 303;
82 /** <tt>304 Not Modified</tt> (HTTP/1.0 - RFC 1945) */
83 public static final int SC_NOT_MODIFIED = 304;
84 /** <tt>305 Use Proxy</tt> (HTTP/1.1 - RFC 2616) */
85 public static final int SC_USE_PROXY = 305;
86 /** <tt>307 Temporary Redirect</tt> (HTTP/1.1 - RFC 2616) */
87 public static final int SC_TEMPORARY_REDIRECT = 307;
89 // --- 4xx Client Error ---
91 /** <tt>400 Bad Request</tt> (HTTP/1.1 - RFC 2616) */
92 public static final int SC_BAD_REQUEST = 400;
93 /** <tt>401 Unauthorized</tt> (HTTP/1.0 - RFC 1945) */
94 public static final int SC_UNAUTHORIZED = 401;
95 /** <tt>402 Payment Required</tt> (HTTP/1.1 - RFC 2616) */
96 public static final int SC_PAYMENT_REQUIRED = 402;
97 /** <tt>403 Forbidden</tt> (HTTP/1.0 - RFC 1945) */
98 public static final int SC_FORBIDDEN = 403;
99 /** <tt>404 Not Found</tt> (HTTP/1.0 - RFC 1945) */
100 public static final int SC_NOT_FOUND = 404;
101 /** <tt>405 Method Not Allowed</tt> (HTTP/1.1 - RFC 2616) */
102 public static final int SC_METHOD_NOT_ALLOWED = 405;
103 /** <tt>406 Not Acceptable</tt> (HTTP/1.1 - RFC 2616) */
104 public static final int SC_NOT_ACCEPTABLE = 406;
105 /** <tt>407 Proxy Authentication Required</tt> (HTTP/1.1 - RFC 2616)*/
106 public static final int SC_PROXY_AUTHENTICATION_REQUIRED = 407;
107 /** <tt>408 Request Timeout</tt> (HTTP/1.1 - RFC 2616) */
108 public static final int SC_REQUEST_TIMEOUT = 408;
109 /** <tt>409 Conflict</tt> (HTTP/1.1 - RFC 2616) */
110 public static final int SC_CONFLICT = 409;
111 /** <tt>410 Gone</tt> (HTTP/1.1 - RFC 2616) */
112 public static final int SC_GONE = 410;
113 /** <tt>411 Length Required</tt> (HTTP/1.1 - RFC 2616) */
114 public static final int SC_LENGTH_REQUIRED = 411;
115 /** <tt>412 Precondition Failed</tt> (HTTP/1.1 - RFC 2616) */
116 public static final int SC_PRECONDITION_FAILED = 412;
117 /** <tt>413 Request Entity Too Large</tt> (HTTP/1.1 - RFC 2616) */
118 public static final int SC_REQUEST_TOO_LONG = 413;
119 /** <tt>414 Request-URI Too Long</tt> (HTTP/1.1 - RFC 2616) */
120 public static final int SC_REQUEST_URI_TOO_LONG = 414;
121 /** <tt>415 Unsupported Media Type</tt> (HTTP/1.1 - RFC 2616) */
122 public static final int SC_UNSUPPORTED_MEDIA_TYPE = 415;
123 /** <tt>416 Requested Range Not Satisfiable</tt> (HTTP/1.1 - RFC 2616) */
124 public static final int SC_REQUESTED_RANGE_NOT_SATISFIABLE = 416;
125 /** <tt>417 Expectation Failed</tt> (HTTP/1.1 - RFC 2616) */
126 public static final int SC_EXPECTATION_FAILED = 417;
128 /**
129 * Static constant for a 418 error.
130 * <tt>418 Unprocessable Entity</tt> (WebDAV drafts?)
131 * or <tt>418 Reauthentication Required</tt> (HTTP/1.1 drafts?)
132 */
133 // not used
134 // public static final int SC_UNPROCESSABLE_ENTITY = 418;
136 /**
137 * Static constant for a 419 error.
138 * <tt>419 Insufficient Space on Resource</tt>
139 * (WebDAV - draft-ietf-webdav-protocol-05?)
140 * or <tt>419 Proxy Reauthentication Required</tt>
141 * (HTTP/1.1 drafts?)
142 */
143 public static final int SC_INSUFFICIENT_SPACE_ON_RESOURCE = 419;
144 /**
145 * Static constant for a 420 error.
146 * <tt>420 Method Failure</tt>
147 * (WebDAV - draft-ietf-webdav-protocol-05?)
148 */
149 public static final int SC_METHOD_FAILURE = 420;
150 /** <tt>422 Unprocessable Entity</tt> (WebDAV - RFC 2518) */
151 public static final int SC_UNPROCESSABLE_ENTITY = 422;
152 /** <tt>423 Locked</tt> (WebDAV - RFC 2518) */
153 public static final int SC_LOCKED = 423;
154 /** <tt>424 Failed Dependency</tt> (WebDAV - RFC 2518) */
155 public static final int SC_FAILED_DEPENDENCY = 424;
157 // --- 5xx Server Error ---
159 /** <tt>500 Server Error</tt> (HTTP/1.0 - RFC 1945) */
160 public static final int SC_INTERNAL_SERVER_ERROR = 500;
161 /** <tt>501 Not Implemented</tt> (HTTP/1.0 - RFC 1945) */
162 public static final int SC_NOT_IMPLEMENTED = 501;
163 /** <tt>502 Bad Gateway</tt> (HTTP/1.0 - RFC 1945) */
164 public static final int SC_BAD_GATEWAY = 502;
165 /** <tt>503 Service Unavailable</tt> (HTTP/1.0 - RFC 1945) */
166 public static final int SC_SERVICE_UNAVAILABLE = 503;
167 /** <tt>504 Gateway Timeout</tt> (HTTP/1.1 - RFC 2616) */
168 public static final int SC_GATEWAY_TIMEOUT = 504;
169 /** <tt>505 HTTP Version Not Supported</tt> (HTTP/1.1 - RFC 2616) */
170 public static final int SC_HTTP_VERSION_NOT_SUPPORTED = 505;
172 /** <tt>507 Insufficient Storage</tt> (WebDAV - RFC 2518) */
173 public static final int SC_INSUFFICIENT_STORAGE = 507;
175 }