PageRenderTime 10ms CodeModel.GetById 1ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/llcommon/llhttpstatuscodes.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 89 lines | 45 code | 9 blank | 35 comment | 0 complexity | 8d22615d67d873b86834ae2c8337a7bd MD5 | raw file
 1/** 
 2 * @file llhttpstatuscodes.h
 3 * @brief Constants for HTTP status codes
 4 *
 5 * $LicenseInfo:firstyear=2001&license=viewerlgpl$
 6 * Second Life Viewer Source Code
 7 * Copyright (C) 2010, Linden Research, Inc.
 8 * 
 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation;
12 * version 2.1 of the License only.
13 * 
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 * Lesser General Public License for more details.
18 * 
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
22 * 
23 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
24 * $/LicenseInfo$
25 */
26
27#ifndef LL_HTTP_STATUS_CODES_H
28#define LL_HTTP_STATUS_CODES_H
29
30#include "stdtypes.h"
31
32// Standard errors from HTTP spec:
33// http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6.1
34const S32 HTTP_CONTINUE = 100;
35const S32 HTTP_SWITCHING_PROTOCOLS = 101;
36
37// Success
38const S32 HTTP_OK = 200;
39const S32 HTTP_CREATED = 201;
40const S32 HTTP_ACCEPTED = 202;
41const S32 HTTP_NON_AUTHORITATIVE_INFORMATION = 203;
42const S32 HTTP_NO_CONTENT = 204;
43const S32 HTTP_RESET_CONTENT = 205;
44const S32 HTTP_PARTIAL_CONTENT = 206;
45
46// Redirection
47const S32 HTTP_MULTIPLE_CHOICES = 300;
48const S32 HTTP_MOVED_PERMANENTLY = 301;
49const S32 HTTP_FOUND = 302;
50const S32 HTTP_SEE_OTHER = 303;
51const S32 HTTP_NOT_MODIFIED = 304;
52const S32 HTTP_USE_PROXY = 305;
53const S32 HTTP_TEMPORARY_REDIRECT = 307;
54
55// Client Error
56const S32 HTTP_BAD_REQUEST = 400;
57const S32 HTTP_UNAUTHORIZED = 401;
58const S32 HTTP_PAYMENT_REQUIRED = 402;
59const S32 HTTP_FORBIDDEN = 403;
60const S32 HTTP_NOT_FOUND = 404;
61const S32 HTTP_METHOD_NOT_ALLOWED = 405;
62const S32 HTTP_NOT_ACCEPTABLE = 406;
63const S32 HTTP_PROXY_AUTHENTICATION_REQUIRED = 407;
64const S32 HTTP_REQUEST_TIME_OUT = 408;
65const S32 HTTP_CONFLICT = 409;
66const S32 HTTP_GONE = 410;
67const S32 HTTP_LENGTH_REQUIRED = 411;
68const S32 HTTP_PRECONDITION_FAILED = 412;
69const S32 HTTP_REQUEST_ENTITY_TOO_LARGE = 413;
70const S32 HTTP_REQUEST_URI_TOO_LARGE = 414;
71const S32 HTTP_UNSUPPORTED_MEDIA_TYPE = 415;
72const S32 HTTP_REQUESTED_RANGE_NOT_SATISFIABLE = 416;
73const S32 HTTP_EXPECTATION_FAILED = 417;
74
75// Server Error
76const S32 HTTP_INTERNAL_SERVER_ERROR = 500;
77const S32 HTTP_NOT_IMPLEMENTED = 501;
78const S32 HTTP_BAD_GATEWAY = 502;
79const S32 HTTP_SERVICE_UNAVAILABLE = 503;
80const S32 HTTP_GATEWAY_TIME_OUT = 504;
81const S32 HTTP_VERSION_NOT_SUPPORTED = 505;
82
83// We combine internal process errors with status codes
84// These status codes should not be sent over the wire
85//   and indicate something went wrong internally.
86// If you get these they are not normal.
87const S32 HTTP_INTERNAL_ERROR = 499;
88
89#endif