修订版 | 216 (tree) |
---|---|
时间 | 2020-01-15 10:21:37 |
作者 | hirukawa_ryo |
* rest-client-util 0.2.6
HttpStatus定数クラスを追加しました。
@@ -0,0 +1,118 @@ | ||
1 | +package net.osdn.util.rest.client; | |
2 | + | |
3 | +public class HttpStatus { | |
4 | + | |
5 | + public static final int _100_CONTINUE = 100; | |
6 | + public static final int _101_SWITCHING_PROTOCOLS = 101; | |
7 | + public static final int _103_EARLY_HINTS = 103; | |
8 | + | |
9 | + public static final int _200_OK = 200; | |
10 | + public static final int _201_CREATED = 201; | |
11 | + public static final int _202_ACCEPTED = 202; | |
12 | + public static final int _203_NON_AUTHORITATIVE_INFORMATION = 203; | |
13 | + public static final int _204_NO_CONTENT = 204; | |
14 | + public static final int _205_RESET_CONTENT = 205; | |
15 | + public static final int _206_PARTIAL_CONTENT = 206; | |
16 | + | |
17 | + public static final int _300_MULTIPLE_CHOICES = 300; | |
18 | + public static final int _301_MOVED_PERMANENTLY = 301; | |
19 | + public static final int _302_MOVED_TEMPORARILY = 302; | |
20 | + public static final int _303_SEE_OTHER = 303; | |
21 | + public static final int _304_NOT_MODIFIED = 304; | |
22 | + public static final int _305_USE_PROXY = 305; | |
23 | + public static final int _307_TEMPORARY_REDIRECT = 307; | |
24 | + public static final int _308_PERMANENT_REDIRECT = 308; | |
25 | + | |
26 | + public static final int _400_BAD_REQUEST = 400; | |
27 | + public static final int _401_UNAUTHORIZED = 401; | |
28 | + public static final int _402_PAYMENT_REQUIRED = 402; | |
29 | + public static final int _403_FORBIDDEN = 403; | |
30 | + public static final int _404_NOT_FOUND = 404; | |
31 | + public static final int _405_METHOD_NOT_ALLOWED = 405; | |
32 | + public static final int _406_NOT_ACCEPTABLE = 406; | |
33 | + public static final int _407_PROXY_AUTHENTICATION_REQUIRED = 407; | |
34 | + public static final int _408_REQUEST_TIMEOUT = 408; | |
35 | + public static final int _409_CONFLICT = 409; | |
36 | + public static final int _410_GONE = 410; | |
37 | + public static final int _411_LENGTH_REQUIRED = 411; | |
38 | + public static final int _412_PRECONDITION_FAILED = 412; | |
39 | + public static final int _413_REQUEST_ENTITY_TOO_LARGE = 413; | |
40 | + public static final int _414_REQUEST_URI_TOO_LONG = 414; | |
41 | + public static final int _415_UNSUPPORTED_MEDIA_TYPE = 415; | |
42 | + public static final int _416_REQUEST_RANGE_NOT_SATISFIABLE = 416; | |
43 | + public static final int _417_EXPECTATION_FAILED = 417; | |
44 | + public static final int _422_UNPROCESSABLE_ENTITY = 422; | |
45 | + public static final int _425_TOO_EARLY = 425; | |
46 | + public static final int _426_UPGRADE_REQUIRED = 426; | |
47 | + public static final int _428_PRECONDITION_REQUIRED = 428; | |
48 | + public static final int _429_TOO_MANY_REQUESTS = 429; | |
49 | + public static final int _431_REQUEST_HEADER_FIELDS_TOO_LARGE = 431; | |
50 | + public static final int _451_UNAVAILABLE_FOR_LEGAL_REASONS = 451; | |
51 | + | |
52 | + public static final int _500_INTERNAL_SERVER_ERROR = 500; | |
53 | + public static final int _501_NOT_IMPLEMENTED = 501; | |
54 | + public static final int _502_BAD_GATEWAY = 502; | |
55 | + public static final int _503_SERVICE_UNAVAILABLE = 503; | |
56 | + public static final int _504_GATEWAY_TIMEOUT = 504; | |
57 | + public static final int _505_HTTP_VERSION_NOT_SUPPORTED = 505; | |
58 | + public static final int _508_LOOP_DETECTED = 508; | |
59 | + public static final int _511_NETWORK_AUTHENTICATION_REQUIRED = 511; | |
60 | + | |
61 | + | |
62 | + public static final int CONTINUE = 100; | |
63 | + public static final int SWITCHING_PROTOCOLS = 101; | |
64 | + public static final int EARLY_HINTS = 103; | |
65 | + | |
66 | + public static final int OK = 200; | |
67 | + public static final int CREATED = 201; | |
68 | + public static final int ACCEPTED = 202; | |
69 | + public static final int NON_AUTHORITATIVE_INFORMATION = 203; | |
70 | + public static final int NO_CONTENT = 204; | |
71 | + public static final int RESET_CONTENT = 205; | |
72 | + public static final int PARTIAL_CONTENT = 206; | |
73 | + | |
74 | + public static final int MULTIPLE_CHOICES = 300; | |
75 | + public static final int MOVED_PERMANENTLY = 301; | |
76 | + public static final int MOVED_TEMPORARILY = 302; | |
77 | + public static final int SEE_OTHER = 303; | |
78 | + public static final int NOT_MODIFIED = 304; | |
79 | + public static final int USE_PROXY = 305; | |
80 | + public static final int TEMPORARY_REDIRECT = 307; | |
81 | + public static final int PERMANENT_REDIRECT = 308; | |
82 | + | |
83 | + public static final int BAD_REQUEST = 400; | |
84 | + public static final int UNAUTHORIZED = 401; | |
85 | + public static final int PAYMENT_REQUIRED = 402; | |
86 | + public static final int FORBIDDEN = 403; | |
87 | + public static final int NOT_FOUND = 404; | |
88 | + public static final int METHOD_NOT_ALLOWED = 405; | |
89 | + public static final int NOT_ACCEPTABLE = 406; | |
90 | + public static final int PROXY_AUTHENTICATION_REQUIRED = 407; | |
91 | + public static final int REQUEST_TIMEOUT = 408; | |
92 | + public static final int CONFLICT = 409; | |
93 | + public static final int GONE = 410; | |
94 | + public static final int LENGTH_REQUIRED = 411; | |
95 | + public static final int PRECONDITION_FAILED = 412; | |
96 | + public static final int REQUEST_ENTITY_TOO_LARGE = 413; | |
97 | + public static final int REQUEST_URI_TOO_LONG = 414; | |
98 | + public static final int UNSUPPORTED_MEDIA_TYPE = 415; | |
99 | + public static final int REQUEST_RANGE_NOT_SATISFIABLE = 416; | |
100 | + public static final int EXPECTATION_FAILED = 417; | |
101 | + public static final int UNPROCESSABLE_ENTITY = 422; | |
102 | + public static final int TOO_EARLY = 425; | |
103 | + public static final int UPGRADE_REQUIRED = 426; | |
104 | + public static final int PRECONDITION_REQUIRED = 428; | |
105 | + public static final int TOO_MANY_REQUESTS = 429; | |
106 | + public static final int REQUEST_HEADER_FIELDS_TOO_LARGE = 431; | |
107 | + public static final int UNAVAILABLE_FOR_LEGAL_REASONS = 451; | |
108 | + | |
109 | + public static final int INTERNAL_SERVER_ERROR = 500; | |
110 | + public static final int NOT_IMPLEMENTED = 501; | |
111 | + public static final int BAD_GATEWAY = 502; | |
112 | + public static final int SERVICE_UNAVAILABLE = 503; | |
113 | + public static final int GATEWAY_TIMEOUT = 504; | |
114 | + public static final int HTTP_VERSION_NOT_SUPPORTED = 505; | |
115 | + public static final int LOOP_DETECTED = 508; | |
116 | + public static final int NETWORK_AUTHENTICATION_REQUIRED = 511; | |
117 | +} | |
118 | + |