aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon/llhttpstatuscodes.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llcommon/llhttpstatuscodes.h')
-rw-r--r--linden/indra/llcommon/llhttpstatuscodes.h94
1 files changed, 94 insertions, 0 deletions
diff --git a/linden/indra/llcommon/llhttpstatuscodes.h b/linden/indra/llcommon/llhttpstatuscodes.h
new file mode 100644
index 0000000..2eb1c39
--- /dev/null
+++ b/linden/indra/llcommon/llhttpstatuscodes.h
@@ -0,0 +1,94 @@
1/**
2 * @file llhttpstatuscodes.h
3 * @brief Constants for HTTP status codes
4 *
5 * $LicenseInfo:firstyear=2001&license=viewergpl$
6 *
7 * Copyright (c) 2001-2008, Linden Research, Inc.
8 *
9 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab
11 * to you under the terms of the GNU General Public License, version 2.0
12 * ("GPL"), unless you have obtained a separate licensing agreement
13 * ("Other License"), formally executed by you and Linden Lab. Terms of
14 * the GPL can be found in doc/GPL-license.txt in this distribution, or
15 * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
16 *
17 * There are special exceptions to the terms and conditions of the GPL as
18 * it is applied to this Source Code. View the full text of the exception
19 * in the file doc/FLOSS-exception.txt in this software distribution, or
20 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception
21 *
22 * By copying, modifying or distributing this software, you acknowledge
23 * that you have read and understood your obligations described above,
24 * and agree to abide by those obligations.
25 *
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE.
29 * $/LicenseInfo$
30 */
31
32#ifndef LL_HTTP_STATUS_CODES_H
33#define LL_HTTP_STATUS_CODES_H
34
35#include "stdtypes.h"
36
37// Standard errors from HTTP spec:
38// http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6.1
39const S32 HTTP_CONTINUE = 100;
40const S32 HTTP_SWITCHING_PROTOCOLS = 101;
41
42// Success
43const S32 HTTP_OK = 200;
44const S32 HTTP_CREATED = 201;
45const S32 HTTP_ACCEPTED = 202;
46const S32 HTTP_NON_AUTHORITATIVE_INFORMATION = 203;
47const S32 HTTP_NO_CONTENT = 204;
48const S32 HTTP_RESET_CONTENT = 205;
49const S32 HTTP_PARTIAL_CONTENT = 206;
50
51// Redirection
52const S32 HTTP_MULTIPLE_CHOICES = 300;
53const S32 HTTP_MOVED_PERMANENTLY = 301;
54const S32 HTTP_FOUND = 302;
55const S32 HTTP_SEE_OTHER = 303;
56const S32 HTTP_NOT_MODIFIED = 304;
57const S32 HTTP_USE_PROXY = 305;
58const S32 HTTP_TEMPORARY_REDIRECT = 307;
59
60// Client Error
61const S32 HTTP_BAD_REQUEST = 400;
62const S32 HTTP_UNAUTHORIZED = 401;
63const S32 HTTP_PAYMENT_REQUIRED = 402;
64const S32 HTTP_FORBIDDEN = 403;
65const S32 HTTP_NOT_FOUND = 404;
66const S32 HTTP_METHOD_NOT_ALLOWED = 405;
67const S32 HTTP_NOT_ACCEPTABLE = 406;
68const S32 HTTP_PROXY_AUTHENTICATION_REQUIRED = 407;
69const S32 HTTP_REQUEST_TIME_OUT = 408;
70const S32 HTTP_CONFLICT = 409;
71const S32 HTTP_GONE = 410;
72const S32 HTTP_LENGTH_REQUIRED = 411;
73const S32 HTTP_PRECONDITION_FAILED = 412;
74const S32 HTTP_REQUEST_ENTITY_TOO_LARGE = 413;
75const S32 HTTP_REQUEST_URI_TOO_LARGE = 414;
76const S32 HTTP_UNSUPPORTED_MEDIA_TYPE = 415;
77const S32 HTTP_REQUESTED_RANGE_NOT_SATISFIABLE = 416;
78const S32 HTTP_EXPECTATION_FAILED = 417;
79
80// Server Error
81const S32 HTTP_INTERNAL_SERVER_ERROR = 500;
82const S32 HTTP_NOT_IMPLEMENTED = 501;
83const S32 HTTP_BAD_GATEWAY = 502;
84const S32 HTTP_SERVICE_UNAVAILABLE = 503;
85const S32 HTTP_GATEWAY_TIME_OUT = 504;
86const S32 HTTP_VERSION_NOT_SUPPORTED = 505;
87
88// We combine internal process errors with status codes
89// These status codes should not be sent over the wire
90// and indicate something went wrong internally.
91// If you get these they are not normal.
92const S32 HTTP_INTERNAL_ERROR = 499;
93
94#endif