OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
OSHttpStatusCodes.cs
Go to the documentation of this file.
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 {
33  public enum OSHttpStatusCode : int
34  {
35  #region 1xx Informational status codes providing a provisional response.
36 
40  InfoContinue = 100,
41 
46 
47  #endregion
48 
49  #region 2xx Success codes
50 
54  SuccessOk = 200,
55 
59  SuccessOkCreated = 201,
60 
64  SuccessOkAccepted = 202,
65 
70 
74  SuccessOkNoContent = 204,
75 
80 
85 
86  #endregion
87 
88  #region 3xx Redirect code: user agent needs to go somewhere else
89 
94 
99 
103  RedirectFound = 302,
104 
108  RedirectSeeOther = 303,
109 
113  RedirectNotModified = 304,
114 
118  RedirectUseProxy = 305,
119 
124 
125  #endregion
126 
127  #region 4xx Client error: the client borked the request
128 
132  ClientErrorBadRequest = 400,
133 
138 
143 
146  ClientErrorForbidden = 403,
147 
151  ClientErrorNotFound = 404,
152 
157 
162 
167 
172 
176  ClientErrorConflict = 409,
177 
181  ClientErrorGone = 410,
182 
187 
192 
197 
202 
207 
212 
217 
222 
227 
232 
236  ClientErrorJoker = 499,
237 
238  #endregion
239 
240  #region 5xx Server errors (rare)
241 
246 
251 
255  ServerErrorBadGateway = 502,
256 
261 
266 
271 
276 
277  #endregion
278  }
279 }
100 Tells client that to keep on going sending its request
502 Server error: While acting as a proxy or a gateway, the server got ditched by the upstream server...
303 Redirect: See other as result of a POST
500 Server error: something really strange and unexpected happened
511 Server error: The 511 status code indicates that the client needs to authenticate to gain network...
406 Client error: Server cannot generate suitable response for the resource and content characteristi...
305 Redirect: Resource must be accessed via proxy provided in location field
405 Client error: The method specified by the client in the request is not allowed for the resource r...
409 Client error: Server could not fulfill the request for a resource as there is a conflict with the...
101 Server understands request, proposes to switch to different application level protocol ...
429 Client error: The 429 status code indicates that the user has sent too many requests in a given a...
415 Client error: The server has no clue about the media type requested by the client (contrary to po...
300 Redirect: different presentation forms available, take a pick
202 Request accepted, processing still on-going
301 Redirect: requested resource has moved and now lives somewhere else
302 Redirect: Resource temporarily somewhere else, location might change
203 Request successful, meta information not authoritative
408 Client error: Server got impatient with client and decided to give up waiting for the client's re...
503 Server error: Due to unforseen circumstances the server cannot currently deliver the service requ...
400 Client error: bad request, server does not grok what the client wants
431 Client error: The 431 status code indicates that the server is unwilling to process the request b...
414 Client error: The server considers the Request-URI to be indecently long and refuses to even look...
411 Client error: The server is picky again and insists on having a content-length header field in th...
404 Client error: Server cannot find anything matching the client request.
410 Client error: The resource has moved somewhere else, but server has no clue where.
401 Client error: the client is not authorized, response provides WWW-Authenticate header field with ...
403 Client error: Server understood request, will not deliver, do not try again.
501 Server error: The server does not do the functionality required to carry out the client request...
504 Server error: The server blames the upstream server for not being able to deliver the service req...
307 Redirect: Resource temporarily somewhere else, location might change
204 Request successful, nothing to return in the body
412 Client error: one or more preconditions supplied in the client's request is false ...
407 Client error: Similar to 401, Server requests that client authenticate itself with the proxy firs...
201 Request successful, new resource created
413 Client error: For fear of reflux, the server refuses to swallow that much data.
417 Client error: The expectations of the client as expressed in one or more Expect header fields can...
304 Redirect: Resource still the same as before
505 Server error: The server does not support the HTTP version conveyed in the client's request...
416 Client error: The requested range cannot be delivered by the server.
428 Client error :The 428 status code indicates that the origin server requires the request to be con...
205 Request successful, reset displayed content
402 Client error: Payment required (reserved for future use)
OSHttpStatusCode
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
206 Request successful, partial content returned