http.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2003-2005 Tommi Maekitalo
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * As a special exception, you may use this file as part of a free
10  * software library without restriction. Specifically, if other files
11  * instantiate templates or use macros or inline functions from this
12  * file, or you compile this file and link it with other files to
13  * produce an executable, this file does not by itself cause the
14  * resulting executable to be covered by the GNU General Public
15  * License. This exception does not however invalidate any other
16  * reasons why the executable file might be covered by the GNU Library
17  * General Public License.
18  *
19  * This library is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22  * Lesser General Public License for more details.
23  *
24  * You should have received a copy of the GNU Lesser General Public
25  * License along with this library; if not, write to the Free Software
26  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
27  */
28 
29 
30 #ifndef TNT_HTTP_H
31 #define TNT_HTTP_H
32 
33 static const unsigned DECLINED = 0;
34 static const unsigned HTTP_CONTINUE = 100;
35 static const unsigned HTTP_SWITCHING_PROTOCOLS = 101;
36 static const unsigned HTTP_PROCESSING = 102;
37 static const unsigned HTTP_OK = 200;
38 static const unsigned HTTP_CREATED = 201;
39 static const unsigned HTTP_ACCEPTED = 202;
40 static const unsigned HTTP_NON_AUTHORITATIVE = 203;
41 static const unsigned HTTP_NO_CONTENT = 204;
42 static const unsigned HTTP_RESET_CONTENT = 205;
43 static const unsigned HTTP_PARTIAL_CONTENT = 206;
44 static const unsigned HTTP_MULTI_STATUS = 207;
45 static const unsigned HTTP_MULTIPLE_CHOICES = 300;
46 static const unsigned HTTP_MOVED_PERMANENTLY = 301;
47 static const unsigned HTTP_MOVED_TEMPORARILY = 302;
48 static const unsigned HTTP_SEE_OTHER = 303;
49 static const unsigned HTTP_NOT_MODIFIED = 304;
50 static const unsigned HTTP_USE_PROXY = 305;
51 static const unsigned HTTP_TEMPORARY_REDIRECT = 307;
52 static const unsigned HTTP_BAD_REQUEST = 400;
53 static const unsigned HTTP_UNAUTHORIZED = 401;
54 static const unsigned HTTP_PAYMENT_REQUIRED = 402;
55 static const unsigned HTTP_FORBIDDEN = 403;
56 static const unsigned HTTP_NOT_FOUND = 404;
57 static const unsigned HTTP_METHOD_NOT_ALLOWED = 405;
58 static const unsigned HTTP_NOT_ACCEPTABLE = 406;
59 static const unsigned HTTP_PROXY_AUTHENTICATION_REQUIRED = 407;
60 static const unsigned HTTP_REQUEST_TIME_OUT = 408;
61 static const unsigned HTTP_CONFLICT = 409;
62 static const unsigned HTTP_GONE = 410;
63 static const unsigned HTTP_LENGTH_REQUIRED = 411;
64 static const unsigned HTTP_PRECONDITION_FAILED = 412;
65 static const unsigned HTTP_REQUEST_ENTITY_TOO_LARGE = 413;
66 static const unsigned HTTP_REQUEST_URI_TOO_LARGE = 414;
67 static const unsigned HTTP_UNSUPPORTED_MEDIA_TYPE = 415;
68 static const unsigned HTTP_RANGE_NOT_SATISFIABLE = 416;
69 static const unsigned HTTP_EXPECTATION_FAILED = 417;
70 static const unsigned HTTP_UNPROCESSABLE_ENTITY = 422;
71 static const unsigned HTTP_LOCKED = 423;
72 static const unsigned HTTP_FAILED_DEPENDENCY = 424;
73 static const unsigned HTTP_UPGRADE_REQUIRED = 426;
74 static const unsigned HTTP_INTERNAL_SERVER_ERROR = 500;
75 static const unsigned HTTP_NOT_IMPLEMENTED = 501;
76 static const unsigned HTTP_BAD_GATEWAY = 502;
77 static const unsigned HTTP_SERVICE_UNAVAILABLE = 503;
78 static const unsigned HTTP_GATEWAY_TIME_OUT = 504;
79 static const unsigned HTTP_VERSION_NOT_SUPPORTED = 505;
80 static const unsigned HTTP_VARIANT_ALSO_VARIES = 506;
81 static const unsigned HTTP_INSUFFICIENT_STORAGE = 507;
82 static const unsigned HTTP_NOT_EXTENDED = 510;
83 
84 #endif // TNT_HTTP_H