clockwerk-opensim-stable – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 vero 1 /*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27  
28 namespace OpenSim.Framework.Servers.HttpServer
29 {
30 /// <summary>
31 /// HTTP status codes (almost) as defined by W3C in http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html and IETF in http://tools.ietf.org/html/rfc6585
32 /// </summary>
33 public enum OSHttpStatusCode : int
34 {
35 #region 1xx Informational status codes providing a provisional response.
36  
37 /// <summary>
38 /// 100 Tells client that to keep on going sending its request
39 /// </summary>
40 InfoContinue = 100,
41  
42 /// <summary>
43 /// 101 Server understands request, proposes to switch to different application level protocol
44 /// </summary>
45 InfoSwitchingProtocols = 101,
46  
47 #endregion
48  
49 #region 2xx Success codes
50  
51 /// <summary>
52 /// 200 Request successful
53 /// </summary>
54 SuccessOk = 200,
55  
56 /// <summary>
57 /// 201 Request successful, new resource created
58 /// </summary>
59 SuccessOkCreated = 201,
60  
61 /// <summary>
62 /// 202 Request accepted, processing still on-going
63 /// </summary>
64 SuccessOkAccepted = 202,
65  
66 /// <summary>
67 /// 203 Request successful, meta information not authoritative
68 /// </summary>
69 SuccessOkNonAuthoritativeInformation = 203,
70  
71 /// <summary>
72 /// 204 Request successful, nothing to return in the body
73 /// </summary>
74 SuccessOkNoContent = 204,
75  
76 /// <summary>
77 /// 205 Request successful, reset displayed content
78 /// </summary>
79 SuccessOkResetContent = 205,
80  
81 /// <summary>
82 /// 206 Request successful, partial content returned
83 /// </summary>
84 SuccessOkPartialContent = 206,
85  
86 #endregion
87  
88 #region 3xx Redirect code: user agent needs to go somewhere else
89  
90 /// <summary>
91 /// 300 Redirect: different presentation forms available, take a pick
92 /// </summary>
93 RedirectMultipleChoices = 300,
94  
95 /// <summary>
96 /// 301 Redirect: requested resource has moved and now lives somewhere else
97 /// </summary>
98 RedirectMovedPermanently = 301,
99  
100 /// <summary>
101 /// 302 Redirect: Resource temporarily somewhere else, location might change
102 /// </summary>
103 RedirectFound = 302,
104  
105 /// <summary>
106 /// 303 Redirect: See other as result of a POST
107 /// </summary>
108 RedirectSeeOther = 303,
109  
110 /// <summary>
111 /// 304 Redirect: Resource still the same as before
112 /// </summary>
113 RedirectNotModified = 304,
114  
115 /// <summary>
116 /// 305 Redirect: Resource must be accessed via proxy provided in location field
117 /// </summary>
118 RedirectUseProxy = 305,
119  
120 /// <summary>
121 /// 307 Redirect: Resource temporarily somewhere else, location might change
122 /// </summary>
123 RedirectMovedTemporarily = 307,
124  
125 #endregion
126  
127 #region 4xx Client error: the client borked the request
128  
129 /// <summary>
130 /// 400 Client error: bad request, server does not grok what the client wants
131 /// </summary>
132 ClientErrorBadRequest = 400,
133  
134 /// <summary>
135 /// 401 Client error: the client is not authorized, response provides WWW-Authenticate header field with a challenge
136 /// </summary>
137 ClientErrorUnauthorized = 401,
138  
139 /// <summary>
140 /// 402 Client error: Payment required (reserved for future use)
141 /// </summary>
142 ClientErrorPaymentRequired = 402,
143  
144 /// <summary>
145 /// 403 Client error: Server understood request, will not deliver, do not try again.
146 ClientErrorForbidden = 403,
147  
148 /// <summary>
149 /// 404 Client error: Server cannot find anything matching the client request.
150 /// </summary>
151 ClientErrorNotFound = 404,
152  
153 /// <summary>
154 /// 405 Client error: The method specified by the client in the request is not allowed for the resource requested
155 /// </summary>
156 ClientErrorMethodNotAllowed = 405,
157  
158 /// <summary>
159 /// 406 Client error: Server cannot generate suitable response for the resource and content characteristics requested by the client
160 /// </summary>
161 ClientErrorNotAcceptable = 406,
162  
163 /// <summary>
164 /// 407 Client error: Similar to 401, Server requests that client authenticate itself with the proxy first
165 /// </summary>
166 ClientErrorProxyAuthRequired = 407,
167  
168 /// <summary>
169 /// 408 Client error: Server got impatient with client and decided to give up waiting for the client's request to arrive
170 /// </summary>
171 ClientErrorRequestTimeout = 408,
172  
173 /// <summary>
174 /// 409 Client error: Server could not fulfill the request for a resource as there is a conflict with the current state of the resource but thinks client can do something about this
175 /// </summary>
176 ClientErrorConflict = 409,
177  
178 /// <summary>
179 /// 410 Client error: The resource has moved somewhere else, but server has no clue where.
180 /// </summary>
181 ClientErrorGone = 410,
182  
183 /// <summary>
184 /// 411 Client error: The server is picky again and insists on having a content-length header field in the request
185 /// </summary>
186 ClientErrorLengthRequired = 411,
187  
188 /// <summary>
189 /// 412 Client error: one or more preconditions supplied in the client's request is false
190 /// </summary>
191 ClientErrorPreconditionFailed = 412,
192  
193 /// <summary>
194 /// 413 Client error: For fear of reflux, the server refuses to swallow that much data.
195 /// </summary>
196 ClientErrorRequestEntityToLarge = 413,
197  
198 /// <summary>
199 /// 414 Client error: The server considers the Request-URI to be indecently long and refuses to even look at it.
200 /// </summary>
201 ClientErrorRequestURITooLong = 414,
202  
203 /// <summary>
204 /// 415 Client error: The server has no clue about the media type requested by the client (contrary to popular belief it is not a warez server)
205 /// </summary>
206 ClientErrorUnsupportedMediaType = 415,
207  
208 /// <summary>
209 /// 416 Client error: The requested range cannot be delivered by the server.
210 /// </summary>
211 ClientErrorRequestRangeNotSatisfiable = 416,
212  
213 /// <summary>
214 /// 417 Client error: The expectations of the client as expressed in one or more Expect header fields cannot be met by the server, the server is awfully sorry about this.
215 /// </summary>
216 ClientErrorExpectationFailed = 417,
217  
218 /// <summary>
219 /// 428 Client error :The 428 status code indicates that the origin server requires the request to be conditional.
220 /// </summary>
221 ClientErrorPreconditionRequired = 428,
222  
223 /// <summary>
224 /// 429 Client error: The 429 status code indicates that the user has sent too many requests in a given amount of time ("rate limiting").
225 /// </summary>
226 ClientErrorTooManyRequests = 429,
227  
228 /// <summary>
229 /// 431 Client error: The 431 status code indicates that the server is unwilling to process the request because its header fields are too large. The request MAY be resubmitted after reducing the size of the request header fields.
230 /// </summary>
231 ClientErrorRequestHeaderFieldsTooLarge = 431,
232  
233 /// <summary>
234 /// 499 Client error: Wildcard error.
235 /// </summary>
236 ClientErrorJoker = 499,
237  
238 #endregion
239  
240 #region 5xx Server errors (rare)
241  
242 /// <summary>
243 /// 500 Server error: something really strange and unexpected happened
244 /// </summary>
245 ServerErrorInternalError = 500,
246  
247 /// <summary>
248 /// 501 Server error: The server does not do the functionality required to carry out the client request. not at all. certainly not before breakfast. but also not after breakfast.
249 /// </summary>
250 ServerErrorNotImplemented = 501,
251  
252 /// <summary>
253 /// 502 Server error: While acting as a proxy or a gateway, the server got ditched by the upstream server and as a consequence regretfully cannot fulfill the client's request
254 /// </summary>
255 ServerErrorBadGateway = 502,
256  
257 /// <summary>
258 /// 503 Server error: Due to unforseen circumstances the server cannot currently deliver the service requested. Retry-After header might indicate when to try again.
259 /// </summary>
260 ServerErrorServiceUnavailable = 503,
261  
262 /// <summary>
263 /// 504 Server error: The server blames the upstream server for not being able to deliver the service requested and claims that the upstream server is too slow delivering the goods.
264 /// </summary>
265 ServerErrorGatewayTimeout = 504,
266  
267 /// <summary>
268 /// 505 Server error: The server does not support the HTTP version conveyed in the client's request.
269 /// </summary>
270 ServerErrorHttpVersionNotSupported = 505,
271  
272 /// <summary>
273 /// 511 Server error: The 511 status code indicates that the client needs to authenticate to gain network access.
274 /// </summary>
275 ServerErrorNetworkAuthenticationRequired = 511,
276  
277 #endregion
278 }
279 }