forked from Code-Sharp/uHttpSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHttpResponseCode.cs
More file actions
92 lines (88 loc) · 2.66 KB
/
HttpResponseCode.cs
File metadata and controls
92 lines (88 loc) · 2.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
namespace uhttpsharp {
public enum HttpResponseCode {
// Informational
Continue = 100,
SwitchingProtocols = 101,
Processing = 102,
// Success
Ok = 200,
Created = 201,
Accepted = 202,
NonAuthorativeInformation = 203,
NoContent = 204,
ResetContent = 205,
PartialContent = 206,
MultiStatus = 207,
AlreadyReported = 208,
IMUsed = 226,
// Redirection
MovedPermanently = 301,
Found = 302,
SeeOther = 303,
NotModified = 304,
UseProxy = 305,
SwitchProxy = 306,
TemporaryRedirect = 307,
PermanentRedirect = 308,
// Client Error
BadRequest = 400,
Unauthorized = 401,
PaymentRequired = 402,
Forbidden = 403,
NotFound = 404,
MethodNotAllowed = 405,
NotAcceptable = 406,
ProxyAuthenticationRequired = 407,
RequestTimeout = 408,
Conflict = 409,
Gone = 410,
LengthRequired = 411,
PreconditionFailed = 412,
RequestEntityTooLarge = 413,
RequestUriTooLong = 414,
UnsupportedMediaType = 415,
RequestedRangeNotSatisfiable = 416,
ExpectationFailed = 417,
ImATeapot = 418,
AuthenticationTimeout = 419,
MethodFailure = 420,
UnprocessableEntity = 422,
Locked = 423,
FailedDependency = 424,
UnorderedCollection = 425,
UpgradeRequired = 426,
PrecondittionRequired = 428,
TooManyRequests = 429,
RequestHeaderFieldsTooLarge = 431,
LoginTimeout = 440,
NoResponse = 444,
RetryWith = 449,
BlockedByWindowsParentalControls = 450,
UnavailableForLegalReasons = 451,
RequestHeaderTooLarge = 494,
CertError = 495,
NoCert = 496,
HttpToHttps = 497,
ClientClosedRequest = 499,
// Server Errors
InternalServerError = 500,
NotImplemented = 501,
BadGateway = 502,
ServiceUnavailable = 503,
GatewayTimeout = 504,
HttpVersionNotSupported = 505,
VariantAlsoNegotiates = 506,
InsufficientStorage = 507,
LoopDetected = 508,
BandwidthLimitExceeded = 509,
NotExtended = 510,
NetworkAuthenticationRequired = 511,
OriginError = 520,
WebServerIsDown = 521,
ConnectionTimedOut = 522,
ProxyDeclinedRequest = 523,
ATimeoutOccured = 524,
NetworkReadTimeoutError = 598,
NetworkRConnectTimeoutError = 599
}
}