Skip to main content

http_constant/http_status/
const.rs

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