http_constant/http_status/
const.rs

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