Tizen 2.1 base
[platform/core/system/sync-agent.git] / src / fw-plugins / common-public / http / include / http_status.h
1 /*
2  * sync-agent
3  * Copyright (c) 2012 Samsung Electronics Co., Ltd.
4  *
5  * Licensed under the Apache License, Version 2.0 (the License);
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18 #ifndef HTTP_STATUS_H_
19 #define HTTP_STATUS_H_
20
21 typedef enum {
22         /*
23          *      Transport Error
24          */
25         SOUP_CANCELED = 1,
26         SOUP_CANT_RESOLVE,
27         SOUP_CANT_RESOLVE_PROXY,
28         SOUP_CANT_CONNECT,
29         SOUP_CANT_CONNECT_PROXY,
30         SOUP_SSL_FAILED,
31         SOUP_MALFORMED,
32         SOUP_TRY_AGAIN,
33         SOUP_TOO_MANY_REDIRECTS,
34
35         /*
36          *      Informational
37          */
38         CONTINUE = 100,
39         SWITCHING_PROTOCOLS = 101,
40         PROCESSING = 102,       /* WebDAV */
41         CHECKPOINT = 103,
42
43         /*
44          *      Successful
45          */
46         OK = 200,
47         CREATED = 201,
48         ACCEPTED = 202,
49         NON_AUTHORITATIVE_INFORMATION = 203,
50         NO_CONTENT = 204,
51         RESET_CONTENT = 205,
52         PARTIAL_CONTENT = 206,
53         MULTI_STATUS = 207,     /* WebDAV */
54         IM_USED = 208,
55
56         /*
57          *      Redirection
58          */
59         MULTIPLE_CHOICES = 300,
60         MOVED_PERMANENTLY = 301,
61         FOUND = 302,
62         SEE_OTHER = 303,
63         NOT_MODIFIED = 304,
64         USE_PROXY = 305,
65         /* SWITCH_PROXY = 306, *//* Unused */
66         TEMPORARY_REDIRECT = 307,
67         RESUME_INCOMPLETE = 308,
68
69         /*
70          *      Client Error
71          */
72         BAD_REQUEST = 400,
73         UNAUTHORIZED = 401,
74         PAYMENT_REQUIRED = 402,
75         FORBIDDEN = 403,
76         NOT_FOUND = 404,
77         METHOD_NOT_ALLOWED = 405,
78         NOT_ACCEPTABLE = 406,
79         PROXY_AUTHENTICATION_REQUIRED = 407,
80         REQUEST_TIMEOUT = 408,
81         CONFLICT = 409,
82         GONE = 410,
83         LENGTH_REQUIRED = 411,
84         PRECONDITION_FAILED = 412,
85         REQUEST_ENTITY_TOO_LARGE = 413,
86         REQUEST_URI_TOO_LONG = 414,
87         UNSUPPORTED_MEDIA_TYPE = 415,
88         REQUESTED_RANGE_NOT_SATISFIABLE = 416,
89         EXPECTATION_FAILED = 417,
90         IM_A_TEAPOT = 418,
91         UNPROCESSABLE_ENTITY = 422,     /* WebDAV */
92         LOCKED = 423,           /* WebDAV */
93         FAILED_DEPENDENCY = 424,        /* WebDAV */
94         UNORDERED_COLLECTION = 425,
95         UPGRADE_REQUIRED = 426,
96         NO_RESPONSE = 444,
97         RETRY_WITH = 449,
98         BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS = 450,
99         CLIENT_CLOSED_REQUEST = 499,
100
101         /*
102          *      Server Error
103          */
104         INTERNAL_SERVER_ERROR = 500,
105         NOT_IMPLEMENTED = 501,
106         BAD_GATEWAY = 502,
107         SERVICE_UNAVAILABLE = 503,
108         GATEWAY_TIMEOUT = 504,
109         HTTP_VERSION_NOT_SUPPORTED = 505,
110         VARIANT_ALSO_NEGOTIATES = 506,
111         INSUFFICIENT_STORAGE = 507,     /* WebDAV */
112         BANDWIDTH_LIMIT_EXCEEDED = 509, /* Apache bw / timited extension */
113         NOT_EXTENDED = 510,
114
115 } http_status_e;
116
117 #endif                          /* HTTP_STATUS_H_ */