KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > update > internal > core > IStatusCodes


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.update.internal.core;
12
13 /**
14  * HTTP status codes.
15  * <p>
16  * <b>Note:</b> This class/interface is part of an interim API that is still under
17  * development and expected to change significantly before reaching stability.
18  * It is being made available at this early stage to solicit feedback from pioneering
19  * adopters on the understanding that any code that uses this API will almost
20  * certainly be broken (repeatedly) as the API evolves.
21  * </p>
22  */

23 public interface IStatusCodes {
24     public static final int HTTP_CONTINUE = 100;
25     public static final int HTTP_SWITCHING_PROTOCOLS = 101;
26     public static final int HTTP_OK = 200;
27     public static final int HTTP_CREATED = 201;
28     public static final int HTTP_ACCEPTED = 202;
29     public static final int HTTP_NON_AUTHORITATIVE_INFORMATION = 203;
30     public static final int HTTP_NO_CONTENT = 204;
31     public static final int HTTP_RESET_CONTENT = 205;
32     public static final int HTTP_PARTIAL_CONTENT = 206;
33     public static final int HTTP_MULTIPLE_CHOICES = 300;
34     public static final int HTTP_MOVED_PERMANENTLY = 301;
35     public static final int HTTP_MOVED_TEMPORARILY = 302;
36     public static final int HTTP_SEE_OTHER = 303;
37     public static final int HTTP_NOT_MODIFIED = 304;
38     public static final int HTTP_USE_PROXY = 305;
39     public static final int HTTP_TEMPORARY_REDIRECT = 307;
40     public static final int HTTP_BAD_REQUEST = 400;
41     public static final int HTTP_UNAUTHORIZED = 401;
42     public static final int HTTP_PAYMENT_REQUIRED = 402;
43     public static final int HTTP_FORBIDDEN = 403;
44     public static final int HTTP_NOT_FOUND = 404;
45     public static final int HTTP_METHOD_NOT_ALLOWED = 405;
46     public static final int HTTP_NOT_ACCEPTABLE = 406;
47     public static final int HTTP_PROXY_AUTHENTICATION_REQUIRED = 407;
48     public static final int HTTP_REQUEST_TIMEOUT = 408;
49     public static final int HTTP_CONFLICT = 409;
50     public static final int HTTP_GONE = 410;
51     public static final int HTTP_LENGTH_REQUIRED = 411;
52     public static final int HTTP_PRECONDITION_FAILED = 412;
53     public static final int HTTP_REQUEST_TOO_LONG = 413;
54     public static final int HTTP_REQUEST_URI_TOO_LONG = 414;
55     public static final int HTTP_UNSUPPORTED_MEDIA_TYPE = 415;
56     public static final int HTTP_REQUESTED_RANGE_NOT_SATISFIABLE = 416;
57     public static final int HTTP_EXPECTATION_FAILED = 417;
58     public static final int HTTP_INTERNAL_SERVER_ERROR = 500;
59     public static final int HTTP_NOT_IMPLEMENTED = 501;
60     public static final int HTTP_BAD_GATEWAY = 502;
61     public static final int HTTP_SERVICE_UNAVAILABLE = 503;
62     public static final int HTTP_GATEWAY_TIMEOUT = 504;
63     public static final int HTTP_HTTP_VERSION_NOT_SUPPORTED = 505;
64 }
65
Popular Tags