forked from NancyFx/Nancy
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathHttpStatusCode.cs
More file actions
262 lines (262 loc) · 7.07 KB
/
HttpStatusCode.cs
File metadata and controls
262 lines (262 loc) · 7.07 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
namespace Nancy
{
/// <summary>
/// HTTP Status Codes
/// </summary>
/// <remarks>The values are based on the list found at http://en.wikipedia.org/wiki/List_of_HTTP_status_codes </remarks>
public enum HttpStatusCode
{
/// <summary>
/// 100 Continue
/// </summary>
Continue = 100,
/// <summary>
/// 101 SwitchingProtocols
/// </summary>
SwitchingProtocols = 101,
/// <summary>
/// 102 Processing
/// </summary>
Processing = 102,
/// <summary>
/// 103 Checkpoint
/// </summary>
Checkpoint = 103,
/// <summary>
/// 200 OK
/// </summary>
OK = 200,
/// <summary>
/// 201 Created
/// </summary>
Created = 201,
/// <summary>
/// 202 Accepted
/// </summary>
Accepted = 202,
/// <summary>
/// 203 NonAuthoritativeInformation
/// </summary>
NonAuthoritativeInformation = 203,
/// <summary>
/// 204 NoContent
/// </summary>
NoContent = 204,
/// <summary>
/// 205 ResetContent
/// </summary>
ResetContent = 205,
/// <summary>
/// 206 PartialContent
/// </summary>
PartialContent = 206,
/// <summary>
/// 207 MultipleStatus
/// </summary>
MultipleStatus = 207,
/// <summary>
/// 226 IMUsed
/// </summary>
IMUsed = 226,
/// <summary>
/// 300 MultipleChoices
/// </summary>
MultipleChoices = 300,
/// <summary>
/// 301 MovedPermanently
/// </summary>
MovedPermanently = 301,
/// <summary>
/// 302 Found
/// </summary>
Found = 302,
/// <summary>
/// 303 SeeOther
/// </summary>
SeeOther = 303,
/// <summary>
/// 304 NotModified
/// </summary>
NotModified = 304,
/// <summary>
/// 305 UseProxy
/// </summary>
UseProxy = 305,
/// <summary>
/// 306 SwitchProxy
/// </summary>
SwitchProxy = 306,
/// <summary>
/// 307 TemporaryRedirect
/// </summary>
TemporaryRedirect = 307,
/// <summary>
/// 308 ResumeIncomplete
/// </summary>
ResumeIncomplete = 308,
/// <summary>
/// 400 BadRequest
/// </summary>
BadRequest = 400,
/// <summary>
/// 401 Unauthorized
/// </summary>
Unauthorized = 401,
/// <summary>
/// 402 PaymentRequired
/// </summary>
PaymentRequired = 402,
/// <summary>
/// 403 Forbidden
/// </summary>
Forbidden = 403,
/// <summary>
/// 404 NotFound
/// </summary>
NotFound = 404,
/// <summary>
/// 405 MethodNotAllowed
/// </summary>
MethodNotAllowed = 405,
/// <summary>
/// 406 NotAcceptable
/// </summary>
NotAcceptable = 406,
/// <summary>
/// 407 ProxyAuthenticationRequired
/// </summary>
ProxyAuthenticationRequired = 407,
/// <summary>
/// 408 RequestTimeout
/// </summary>
RequestTimeout = 408,
/// <summary>
/// 409 Conflict
/// </summary>
Conflict = 409,
/// <summary>
/// 410 Gone
/// </summary>
Gone = 410,
/// <summary>
/// 411 LengthRequired
/// </summary>
LengthRequired = 411,
/// <summary>
/// 412 PreconditionFailed
/// </summary>
PreconditionFailed = 412,
/// <summary>
/// 413 RequestEntityTooLarge
/// </summary>
RequestEntityTooLarge = 413,
/// <summary>
/// 414 RequestUriTooLong
/// </summary>
RequestUriTooLong = 414,
/// <summary>
/// 415 UnsupportedMediaType
/// </summary>
UnsupportedMediaType = 415,
/// <summary>
/// 416 RequestedRangeNotSatisfiable
/// </summary>
RequestedRangeNotSatisfiable = 416,
/// <summary>
/// 417 ExpectationFailed
/// </summary>
ExpectationFailed = 417,
/// <summary>
/// 418 ImATeapot
/// </summary>
ImATeapot = 418,
/// <summary>
/// 420 Enhance Your Calm
/// </summary>
EnhanceYourCalm = 420,
/// <summary>
/// 422 UnprocessableEntity
/// </summary>
UnprocessableEntity = 422,
/// <summary>
/// 423 Locked
/// </summary>
Locked = 423,
/// <summary>
/// 424 FailedDependency
/// </summary>
FailedDependency = 424,
/// <summary>
/// 425 UnorderedCollection
/// </summary>
UnorderedCollection = 425,
/// <summary>
/// 426 UpgradeRequired
/// </summary>
UpgradeRequired = 426,
/// <summary>
/// 429 Too Many Requests
/// </summary>
TooManyRequests = 429,
/// <summary>
/// 444 NoResponse
/// </summary>
NoResponse = 444,
/// <summary>
/// 449 RetryWith
/// </summary>
RetryWith = 449,
/// <summary>
/// 450 BlockedByWindowsParentalControls
/// </summary>
BlockedByWindowsParentalControls = 450,
/// <summary>
/// 451 UnavailableForLegalReasons
/// </summary>
UnavailableForLegalReasons = 451,
/// <summary>
/// 499 ClientClosedRequest
/// </summary>
ClientClosedRequest = 499,
/// <summary>
/// 500 InternalServerError
/// </summary>
InternalServerError = 500,
/// <summary>
/// 501 NotImplemented
/// </summary>
NotImplemented = 501,
/// <summary>
/// 502 BadGateway
/// </summary>
BadGateway = 502,
/// <summary>
/// 503 ServiceUnavailable
/// </summary>
ServiceUnavailable = 503,
/// <summary>
/// 504 GatewayTimeout
/// </summary>
GatewayTimeout = 504,
/// <summary>
/// 505 HttpVersionNotSupported
/// </summary>
HttpVersionNotSupported = 505,
/// <summary>
/// 506 VariantAlsoNegotiates
/// </summary>
VariantAlsoNegotiates = 506,
/// <summary>
/// 507 InsufficientStorage
/// </summary>
InsufficientStorage = 507,
/// <summary>
/// 509 BandwidthLimitExceeded
/// </summary>
BandwidthLimitExceeded = 509,
/// <summary>
/// 510 NotExtended
/// </summary>
NotExtended = 510
}
}