Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Get() [4/4]

static string System.Net.HttpStatusDescription.Get ( int code)
inlinestaticpackage

Definition at line 10 of file HttpStatusDescription.cs.

11 {
12 return code switch
13 {
14 100 => "Continue",
15 101 => "Switching Protocols",
16 102 => "Processing",
17 103 => "Early Hints",
18 200 => "OK",
19 201 => "Created",
20 202 => "Accepted",
21 203 => "Non-Authoritative Information",
22 204 => "No Content",
23 205 => "Reset Content",
24 206 => "Partial Content",
25 207 => "Multi-Status",
26 208 => "Already Reported",
27 226 => "IM Used",
28 300 => "Multiple Choices",
29 301 => "Moved Permanently",
30 302 => "Found",
31 303 => "See Other",
32 304 => "Not Modified",
33 305 => "Use Proxy",
34 307 => "Temporary Redirect",
35 308 => "Permanent Redirect",
36 400 => "Bad Request",
37 401 => "Unauthorized",
38 402 => "Payment Required",
39 403 => "Forbidden",
40 404 => "Not Found",
41 405 => "Method Not Allowed",
42 406 => "Not Acceptable",
43 407 => "Proxy Authentication Required",
44 408 => "Request Timeout",
45 409 => "Conflict",
46 410 => "Gone",
47 411 => "Length Required",
48 412 => "Precondition Failed",
49 413 => "Request Entity Too Large",
50 414 => "Request-Uri Too Long",
51 415 => "Unsupported Media Type",
52 416 => "Requested Range Not Satisfiable",
53 417 => "Expectation Failed",
54 421 => "Misdirected Request",
55 422 => "Unprocessable Entity",
56 423 => "Locked",
57 424 => "Failed Dependency",
58 426 => "Upgrade Required",
59 428 => "Precondition Required",
60 429 => "Too Many Requests",
61 431 => "Request Header Fields Too Large",
62 451 => "Unavailable For Legal Reasons",
63 500 => "Internal Server Error",
64 501 => "Not Implemented",
65 502 => "Bad Gateway",
66 503 => "Service Unavailable",
67 504 => "Gateway Timeout",
68 505 => "Http Version Not Supported",
69 506 => "Variant Also Negotiates",
70 507 => "Insufficient Storage",
71 508 => "Loop Detected",
72 510 => "Not Extended",
73 511 => "Network Authentication Required",
74 _ => null,
75 };
76 }