Source code: proxy/bearer/http/HttpConstants.java
1 package proxy.bearer.http;
2
3
4
5 /**
6 * SET of constants pointing to proper value of http server response code,
7 * coresponding to http specifcation.
8 */
9 interface HttpConstants {
10 /** 2XX: generally "OK" */
11 public static final int HTTP_OK = 200;
12 public static final int HTTP_CREATED = 201;
13 public static final int HTTP_ACCEPTED = 202;
14 public static final int HTTP_NOT_AUTHORITATIVE = 203;
15 public static final int HTTP_NO_CONTENT = 204;
16 public static final int HTTP_RESET = 205;
17 public static final int HTTP_PARTIAL = 206;
18
19 /** 3XX: relocation/redirect */
20 public static final int HTTP_MULT_CHOICE = 300;
21 public static final int HTTP_MOVED_PERM = 301;
22 public static final int HTTP_MOVED_TEMP = 302;
23 public static final int HTTP_SEE_OTHER = 303;
24 public static final int HTTP_NOT_MODIFIED = 304;
25 public static final int HTTP_USE_PROXY = 305;
26
27 /** 4XX: client error */
28 public static final int HTTP_BAD_REQUEST = 400;
29 public static final int HTTP_UNAUTHORIZED = 401;
30 public static final int HTTP_PAYMENT_REQUIRED = 402;
31 public static final int HTTP_FORBIDDEN = 403;
32 public static final int HTTP_NOT_FOUND = 404;
33 public static final int HTTP_BAD_METHOD = 405;
34 public static final int HTTP_NOT_ACCEPTABLE = 406;
35 public static final int HTTP_PROXY_AUTH = 407;
36 public static final int HTTP_CLIENT_TIMEOUT = 408;
37 public static final int HTTP_CONFLICT = 409;
38 public static final int HTTP_GONE = 410;
39 public static final int HTTP_LENGTH_REQUIRED = 411;
40 public static final int HTTP_PRECON_FAILED = 412;
41 public static final int HTTP_ENTITY_TOO_LARGE = 413;
42 public static final int HTTP_REQ_TOO_LONG = 414;
43 public static final int HTTP_UNSUPPORTED_TYPE = 415;
44
45 /** 5XX: server error */
46 public static final int HTTP_SERVER_ERROR = 500;
47 public static final int HTTP_INTERNAL_ERROR = 501;
48 public static final int HTTP_BAD_GATEWAY = 502;
49 public static final int HTTP_UNAVAILABLE = 503;
50 public static final int HTTP_GATEWAY_TIMEOUT = 504;
51 public static final int HTTP_VERSION = 505;
52 }