http_constant/http_status/
const.rs

1/// HTTP status code 100: Continue.
2pub const CONTINUE: &str = "Continue";
3
4/// HTTP status code 101: Switching Protocols.
5pub const SWITCHING_PROTOCOLS: &str = "Switching Protocols";
6
7/// HTTP status code 102: Processing.
8pub const PROCESSING: &str = "Processing";
9
10/// HTTP status code 103: Early Hints.
11pub const EARLY_HINTS: &str = "Early Hints";
12
13/// HTTP status code 200: OK.
14pub const OK: &str = "OK";
15
16/// HTTP status code 201: Created.
17pub const CREATED: &str = "Created";
18
19/// HTTP status code 202: Accepted.
20pub const ACCEPTED: &str = "Accepted";
21
22/// HTTP status code 203: Non-Authoritative Information.
23pub const NON_AUTHORITATIVE_INFORMATION: &str = "Non-Authoritative Information";
24
25/// HTTP status code 204: No Content.
26pub const NO_CONTENT: &str = "No Content";
27
28/// HTTP status code 205: Reset Content.
29pub const RESET_CONTENT: &str = "Reset Content";
30
31/// HTTP status code 206: Partial Content.
32pub const PARTIAL_CONTENT: &str = "Partial Content";
33
34/// HTTP status code 207: Multi-Status.
35pub const MULTI_STATUS: &str = "Multi-Status";
36
37/// HTTP status code 208: Already Reported.
38pub const ALREADY_REPORTED: &str = "Already Reported";
39
40/// HTTP status code 226: IM Used.
41pub const IM_USED: &str = "IM Used";
42
43/// HTTP status code 300: Multiple Choices.
44pub const MULTIPLE_CHOICES: &str = "Multiple Choices";
45
46/// HTTP status code 301: Moved Permanently.
47pub const MOVED_PERMANENTLY: &str = "Moved Permanently";
48
49/// HTTP status code 302: Found.
50pub const FOUND: &str = "Found";
51
52/// HTTP status code 303: See Other.
53pub const SEE_OTHER: &str = "See Other";
54
55/// HTTP status code 304: Not Modified.
56pub const NOT_MODIFIED: &str = "Not Modified";
57
58/// HTTP status code 305: Use Proxy.
59pub const USE_PROXY: &str = "Use Proxy";
60
61/// HTTP status code 307: Temporary Redirect.
62pub const TEMPORARY_REDIRECT: &str = "Temporary Redirect";
63
64/// HTTP status code 308: Permanent Redirect.
65pub const PERMANENT_REDIRECT: &str = "Permanent Redirect";
66
67/// HTTP status code 400: Bad Request.
68pub const BAD_REQUEST: &str = "Bad Request";
69
70/// HTTP status code 401: Unauthorized.
71pub const UNAUTHORIZED: &str = "Unauthorized";
72
73/// HTTP status code 402: Payment Required.
74pub const PAYMENT_REQUIRED: &str = "Payment Required";
75
76/// HTTP status code 403: Forbidden.
77pub const FORBIDDEN: &str = "Forbidden";
78
79/// HTTP status code 404: Not Found.
80pub const NOT_FOUND: &str = "Not Found";
81
82/// HTTP status code 405: Method Not Allowed.
83pub const METHOD_NOT_ALLOWED: &str = "Method Not Allowed";
84
85/// HTTP status code 406: Not Acceptable.
86pub const NOT_ACCEPTABLE: &str = "Not Acceptable";
87
88/// HTTP status code 407: Proxy Authentication Required.
89pub const PROXY_AUTHENTICATION_REQUIRED: &str = "Proxy Authentication Required";
90
91/// HTTP status code 408: Request Timeout.
92pub const REQUEST_TIMEOUT: &str = "Request Timeout";
93
94/// HTTP status code 409: Conflict.
95pub const CONFLICT: &str = "Conflict";
96
97/// HTTP status code 410: Gone.
98pub const GONE: &str = "Gone";
99
100/// HTTP status code 411: Length Required.
101pub const LENGTH_REQUIRED: &str = "Length Required";
102
103/// HTTP status code 412: Precondition Failed.
104pub const PRECONDITION_FAILED: &str = "Precondition Failed";
105
106/// HTTP status code 413: Payload Too Large.
107pub const PAYLOAD_TOO_LARGE: &str = "Payload Too Large";
108
109/// HTTP status code 414: URI Too Long.
110pub const URI_TOO_LONG: &str = "URI Too Long";
111
112/// HTTP status code 415: Unsupported Media Type.
113pub const UNSUPPORTED_MEDIA_TYPE: &str = "Unsupported Media Type";
114
115/// HTTP status code 416: Range Not Satisfiable.
116pub const RANGE_NOT_SATISFIABLE: &str = "Range Not Satisfiable";
117
118/// HTTP status code 417: Expectation Failed.
119pub const EXPECTATION_FAILED: &str = "Expectation Failed";
120
121/// HTTP status code 418: I'm a teapot.
122pub const IM_A_TEAPOT: &str = "I'm a teapot";
123
124/// HTTP status code 421: Misdirected Request.
125pub const MISDIRECTED_REQUEST: &str = "Misdirected Request";
126
127/// HTTP status code 422: Unprocessable Entity.
128pub const UNPROCESSABLE_ENTITY: &str = "Unprocessable Entity";
129
130/// HTTP status code 423: Locked.
131pub const LOCKED: &str = "Locked";
132
133/// HTTP status code 424: Failed Dependency.
134pub const FAILED_DEPENDENCY: &str = "Failed Dependency";
135
136/// HTTP status code 425: Too Early.
137pub const TOO_EARLY: &str = "Too Early";
138
139/// HTTP status code 426: Upgrade Required.
140pub const UPGRADE_REQUIRED: &str = "Upgrade Required";
141
142/// HTTP status code 428: Precondition Required.
143pub const PRECONDITION_REQUIRED: &str = "Precondition Required";
144
145/// HTTP status code 429: Too Many Requests.
146pub const TOO_MANY_REQUESTS: &str = "Too Many Requests";
147
148/// HTTP status code 431: Request Header Fields Too Large.
149pub const REQUEST_HEADER_FIELDS_TOO_LARGE: &str = "Request Header Fields Too Large";
150
151/// HTTP status code 451: Unavailable For Legal Reasons.
152pub const UNAVAILABLE_FOR_LEGAL_REASONS: &str = "Unavailable For Legal Reasons";
153
154/// HTTP status code 500: Internal Server Error.
155pub const INTERNAL_SERVER_ERROR: &str = "Internal Server Error";
156
157/// HTTP status code 501: Not Implemented.
158pub const NOT_IMPLEMENTED: &str = "Not Implemented";
159
160/// HTTP status code 502: Bad Gateway.
161pub const BAD_GATEWAY: &str = "Bad Gateway";
162
163/// HTTP status code 503: Service Unavailable.
164pub const SERVICE_UNAVAILABLE: &str = "Service Unavailable";
165
166/// HTTP status code 504: Gateway Timeout.
167pub const GATEWAY_TIMEOUT: &str = "Gateway Timeout";
168
169/// HTTP status code 505: HTTP Version Not Supported.
170pub const HTTP_VERSION_NOT_SUPPORTED: &str = "HTTP Version Not Supported";
171
172/// HTTP status code 506: Variant Also Negotiates.
173pub const VARIANT_ALSO_NEGOTIATES: &str = "Variant Also Negotiates";
174
175/// HTTP status code 507: Insufficient Storage.
176pub const INSUFFICIENT_STORAGE: &str = "Insufficient Storage";
177
178/// HTTP status code 508: Loop Detected.
179pub const LOOP_DETECTED: &str = "Loop Detected";
180
181/// HTTP status code 510: Not Extended.
182pub const NOT_EXTENDED: &str = "Not Extended";
183
184/// HTTP status code 511: Network Authentication Required.
185pub const NETWORK_AUTHENTICATION_REQUIRED: &str = "Network Authentication Required";
186
187/// HTTP status code for unknown status.
188pub const UNKNOWN: &str = "Unknown";
189
190/// HTTP status code 100 as string: Continue
191pub const STATUS_CODE_100: &str = "100";
192
193/// HTTP status code 101 as string: Switching Protocols
194pub const STATUS_CODE_101: &str = "101";
195
196/// HTTP status code 102 as string: Processing
197pub const STATUS_CODE_102: &str = "102";
198
199/// HTTP status code 103 as string: Early Hints
200pub const STATUS_CODE_103: &str = "103";
201
202/// HTTP status code 200 as string: OK
203pub const STATUS_CODE_200: &str = "200";
204
205/// HTTP status code 201 as string: Created
206pub const STATUS_CODE_201: &str = "201";
207
208/// HTTP status code 202 as string: Accepted
209pub const STATUS_CODE_202: &str = "202";
210
211/// HTTP status code 203 as string: Non-Authoritative Information
212pub const STATUS_CODE_203: &str = "203";
213
214/// HTTP status code 204 as string: No Content
215pub const STATUS_CODE_204: &str = "204";
216
217/// HTTP status code 205 as string: Reset Content
218pub const STATUS_CODE_205: &str = "205";
219
220/// HTTP status code 206 as string: Partial Content
221pub const STATUS_CODE_206: &str = "206";
222
223/// HTTP status code 207 as string: Multi-Status
224pub const STATUS_CODE_207: &str = "207";
225
226/// HTTP status code 208 as string: Already Reported
227pub const STATUS_CODE_208: &str = "208";
228
229/// HTTP status code 226 as string: IM Used
230pub const STATUS_CODE_226: &str = "226";
231
232/// HTTP status code 300 as string: Multiple Choices
233pub const STATUS_CODE_300: &str = "300";
234
235/// HTTP status code 301 as string: Moved Permanently
236pub const STATUS_CODE_301: &str = "301";
237
238/// HTTP status code 302 as string: Found
239pub const STATUS_CODE_302: &str = "302";
240
241/// HTTP status code 303 as string: See Other
242pub const STATUS_CODE_303: &str = "303";
243
244/// HTTP status code 304 as string: Not Modified
245pub const STATUS_CODE_304: &str = "304";
246
247/// HTTP status code 305 as string: Use Proxy
248pub const STATUS_CODE_305: &str = "305";
249
250/// HTTP status code 307 as string: Temporary Redirect
251pub const STATUS_CODE_307: &str = "307";
252
253/// HTTP status code 308 as string: Permanent Redirect
254pub const STATUS_CODE_308: &str = "308";
255
256/// HTTP status code 400 as string: Bad Request
257pub const STATUS_CODE_400: &str = "400";
258
259/// HTTP status code 401 as string: Unauthorized
260pub const STATUS_CODE_401: &str = "401";
261
262/// HTTP status code 402 as string: Payment Required
263pub const STATUS_CODE_402: &str = "402";
264
265/// HTTP status code 403 as string: Forbidden
266pub const STATUS_CODE_403: &str = "403";
267
268/// HTTP status code 404 as string: Not Found
269pub const STATUS_CODE_404: &str = "404";
270
271/// HTTP status code 405 as string: Method Not Allowed
272pub const STATUS_CODE_405: &str = "405";
273
274/// HTTP status code 406 as string: Not Acceptable
275pub const STATUS_CODE_406: &str = "406";
276
277/// HTTP status code 407 as string: Proxy Authentication Required
278pub const STATUS_CODE_407: &str = "407";
279
280/// HTTP status code 408 as string: Request Timeout
281pub const STATUS_CODE_408: &str = "408";
282
283/// HTTP status code 409 as string: Conflict
284pub const STATUS_CODE_409: &str = "409";
285
286/// HTTP status code 410 as string: Gone
287pub const STATUS_CODE_410: &str = "410";
288
289/// HTTP status code 411 as string: Length Required
290pub const STATUS_CODE_411: &str = "411";
291
292/// HTTP status code 412 as string: Precondition Failed
293pub const STATUS_CODE_412: &str = "412";
294
295/// HTTP status code 413 as string: Payload Too Large
296pub const STATUS_CODE_413: &str = "413";
297
298/// HTTP status code 414 as string: URI Too Long
299pub const STATUS_CODE_414: &str = "414";
300
301/// HTTP status code 415 as string: Unsupported Media Type
302pub const STATUS_CODE_415: &str = "415";
303
304/// HTTP status code 416 as string: Range Not Satisfiable
305pub const STATUS_CODE_416: &str = "416";
306
307/// HTTP status code 417 as string: Expectation Failed
308pub const STATUS_CODE_417: &str = "417";
309
310/// HTTP status code 418 as string: I'm a teapot
311pub const STATUS_CODE_418: &str = "418";
312
313/// HTTP status code 421 as string: Misdirected Request
314pub const STATUS_CODE_421: &str = "421";
315
316/// HTTP status code 422 as string: Unprocessable Entity
317pub const STATUS_CODE_422: &str = "422";
318
319/// HTTP status code 423 as string: Locked
320pub const STATUS_CODE_423: &str = "423";
321
322/// HTTP status code 424 as string: Failed Dependency
323pub const STATUS_CODE_424: &str = "424";
324
325/// HTTP status code 425 as string: Too Early
326pub const STATUS_CODE_425: &str = "425";
327
328/// HTTP status code 426 as string: Upgrade Required
329pub const STATUS_CODE_426: &str = "426";
330
331/// HTTP status code 428 as string: Precondition Required
332pub const STATUS_CODE_428: &str = "428";
333
334/// HTTP status code 429 as string: Too Many Requests
335pub const STATUS_CODE_429: &str = "429";
336
337/// HTTP status code 431 as string: Request Header Fields Too Large
338pub const STATUS_CODE_431: &str = "431";
339
340/// HTTP status code 451 as string: Unavailable For Legal Reasons
341pub const STATUS_CODE_451: &str = "451";
342
343/// HTTP status code 500 as string: Internal Server Error
344pub const STATUS_CODE_500: &str = "500";
345
346/// HTTP status code 501 as string: Not Implemented
347pub const STATUS_CODE_501: &str = "501";
348
349/// HTTP status code 502 as string: Bad Gateway
350pub const STATUS_CODE_502: &str = "502";
351
352/// HTTP status code 503 as string: Service Unavailable
353pub const STATUS_CODE_503: &str = "503";
354
355/// HTTP status code 504 as string: Gateway Timeout
356pub const STATUS_CODE_504: &str = "504";
357
358/// HTTP status code 505 as string: HTTP Version Not Supported
359pub const STATUS_CODE_505: &str = "505";
360
361/// HTTP status code 506 as string: Variant Also Negotiates
362pub const STATUS_CODE_506: &str = "506";
363
364/// HTTP status code 507 as string: Insufficient Storage
365pub const STATUS_CODE_507: &str = "507";
366
367/// HTTP status code 508 as string: Loop Detected
368pub const STATUS_CODE_508: &str = "508";
369
370/// HTTP status code 510 as string: Not Extended
371pub const STATUS_CODE_510: &str = "510";
372
373/// HTTP status code 511 as string: Network Authentication Required
374pub const STATUS_CODE_511: &str = "511";