http_constant/http_status/
const.rs

1/// HTTP status code 100: Continue.
2pub const CONTINUE: &'static str = "Continue";
3/// HTTP status code 101: Switching Protocols.
4pub const SWITCHING_PROTOCOLS: &'static str = "Switching Protocols";
5/// HTTP status code 102: Processing.
6pub const PROCESSING: &'static str = "Processing";
7/// HTTP status code 103: Early Hints.
8pub const EARLY_HINTS: &'static str = "Early Hints";
9/// HTTP status code 200: OK.
10pub const OK: &'static str = "OK";
11/// HTTP status code 201: Created.
12pub const CREATED: &'static str = "Created";
13/// HTTP status code 202: Accepted.
14pub const ACCEPTED: &'static str = "Accepted";
15/// HTTP status code 203: Non-Authoritative Information.
16pub const NON_AUTHORITATIVE_INFORMATION: &'static str = "Non-Authoritative Information";
17/// HTTP status code 204: No Content.
18pub const NO_CONTENT: &'static str = "No Content";
19/// HTTP status code 205: Reset Content.
20pub const RESET_CONTENT: &'static str = "Reset Content";
21/// HTTP status code 206: Partial Content.
22pub const PARTIAL_CONTENT: &'static str = "Partial Content";
23/// HTTP status code 207: Multi-Status.
24pub const MULTI_STATUS: &'static str = "Multi-Status";
25/// HTTP status code 208: Already Reported.
26pub const ALREADY_REPORTED: &'static str = "Already Reported";
27/// HTTP status code 226: IM Used.
28pub const IM_USED: &'static str = "IM Used";
29/// HTTP status code 300: Multiple Choices.
30pub const MULTIPLE_CHOICES: &'static str = "Multiple Choices";
31/// HTTP status code 301: Moved Permanently.
32pub const MOVED_PERMANENTLY: &'static str = "Moved Permanently";
33/// HTTP status code 302: Found.
34pub const FOUND: &'static str = "Found";
35/// HTTP status code 303: See Other.
36pub const SEE_OTHER: &'static str = "See Other";
37/// HTTP status code 304: Not Modified.
38pub const NOT_MODIFIED: &'static str = "Not Modified";
39/// HTTP status code 305: Use Proxy.
40pub const USE_PROXY: &'static str = "Use Proxy";
41/// HTTP status code 307: Temporary Redirect.
42pub const TEMPORARY_REDIRECT: &'static str = "Temporary Redirect";
43/// HTTP status code 308: Permanent Redirect.
44pub const PERMANENT_REDIRECT: &'static str = "Permanent Redirect";
45/// HTTP status code 400: Bad Request.
46pub const BAD_REQUEST: &'static str = "Bad Request";
47/// HTTP status code 401: Unauthorized.
48pub const UNAUTHORIZED: &'static str = "Unauthorized";
49/// HTTP status code 402: Payment Required.
50pub const PAYMENT_REQUIRED: &'static str = "Payment Required";
51/// HTTP status code 403: Forbidden.
52pub const FORBIDDEN: &'static str = "Forbidden";
53/// HTTP status code 404: Not Found.
54pub const NOT_FOUND: &'static str = "Not Found";
55/// HTTP status code 405: Method Not Allowed.
56pub const METHOD_NOT_ALLOWED: &'static str = "Method Not Allowed";
57/// HTTP status code 406: Not Acceptable.
58pub const NOT_ACCEPTABLE: &'static str = "Not Acceptable";
59/// HTTP status code 407: Proxy Authentication Required.
60pub const PROXY_AUTHENTICATION_REQUIRED: &'static str = "Proxy Authentication Required";
61/// HTTP status code 408: Request Timeout.
62pub const REQUEST_TIMEOUT: &'static str = "Request Timeout";
63/// HTTP status code 409: Conflict.
64pub const CONFLICT: &'static str = "Conflict";
65/// HTTP status code 410: Gone.
66pub const GONE: &'static str = "Gone";
67/// HTTP status code 411: Length Required.
68pub const LENGTH_REQUIRED: &'static str = "Length Required";
69/// HTTP status code 412: Precondition Failed.
70pub const PRECONDITION_FAILED: &'static str = "Precondition Failed";
71/// HTTP status code 413: Payload Too Large.
72pub const PAYLOAD_TOO_LARGE: &'static str = "Payload Too Large";
73/// HTTP status code 414: URI Too Long.
74pub const URI_TOO_LONG: &'static str = "URI Too Long";
75/// HTTP status code 415: Unsupported Media Type.
76pub const UNSUPPORTED_MEDIA_TYPE: &'static str = "Unsupported Media Type";
77/// HTTP status code 416: Range Not Satisfiable.
78pub const RANGE_NOT_SATISFIABLE: &'static str = "Range Not Satisfiable";
79/// HTTP status code 417: Expectation Failed.
80pub const EXPECTATION_FAILED: &'static str = "Expectation Failed";
81/// HTTP status code 418: I'm a teapot.
82pub const IM_A_TEAPOT: &'static str = "I'm a teapot";
83/// HTTP status code 421: Misdirected Request.
84pub const MISDIRECTED_REQUEST: &'static str = "Misdirected Request";
85/// HTTP status code 422: Unprocessable Entity.
86pub const UNPROCESSABLE_ENTITY: &'static str = "Unprocessable Entity";
87/// HTTP status code 423: Locked.
88pub const LOCKED: &'static str = "Locked";
89/// HTTP status code 424: Failed Dependency.
90pub const FAILED_DEPENDENCY: &'static str = "Failed Dependency";
91/// HTTP status code 425: Too Early.
92pub const TOO_EARLY: &'static str = "Too Early";
93/// HTTP status code 426: Upgrade Required.
94pub const UPGRADE_REQUIRED: &'static str = "Upgrade Required";
95/// HTTP status code 428: Precondition Required.
96pub const PRECONDITION_REQUIRED: &'static str = "Precondition Required";
97/// HTTP status code 429: Too Many Requests.
98pub const TOO_MANY_REQUESTS: &'static str = "Too Many Requests";
99/// HTTP status code 431: Request Header Fields Too Large.
100pub const REQUEST_HEADER_FIELDS_TOO_LARGE: &'static str = "Request Header Fields Too Large";
101/// HTTP status code 451: Unavailable For Legal Reasons.
102pub const UNAVAILABLE_FOR_LEGAL_REASONS: &'static str = "Unavailable For Legal Reasons";
103/// HTTP status code 500: Internal Server Error.
104pub const INTERNAL_SERVER_ERROR: &'static str = "Internal Server Error";
105/// HTTP status code 501: Not Implemented.
106pub const NOT_IMPLEMENTED: &'static str = "Not Implemented";
107/// HTTP status code 502: Bad Gateway.
108pub const BAD_GATEWAY: &'static str = "Bad Gateway";
109/// HTTP status code 503: Service Unavailable.
110pub const SERVICE_UNAVAILABLE: &'static str = "Service Unavailable";
111/// HTTP status code 504: Gateway Timeout.
112pub const GATEWAY_TIMEOUT: &'static str = "Gateway Timeout";
113/// HTTP status code 505: HTTP Version Not Supported.
114pub const HTTP_VERSION_NOT_SUPPORTED: &'static str = "HTTP Version Not Supported";
115/// HTTP status code 506: Variant Also Negotiates.
116pub const VARIANT_ALSO_NEGOTIATES: &'static str = "Variant Also Negotiates";
117/// HTTP status code 507: Insufficient Storage.
118pub const INSUFFICIENT_STORAGE: &'static str = "Insufficient Storage";
119/// HTTP status code 508: Loop Detected.
120pub const LOOP_DETECTED: &'static str = "Loop Detected";
121/// HTTP status code 510: Not Extended.
122pub const NOT_EXTENDED: &'static str = "Not Extended";
123/// HTTP status code 511: Network Authentication Required.
124pub const NETWORK_AUTHENTICATION_REQUIRED: &'static str = "Network Authentication Required";
125/// HTTP status code for unknown status.
126pub const UNKNOWN: &'static str = "Unknown";