Couchbase C Client  2.4.4
http.h
1 /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2 /*
3  * Copyright 2012 Couchbase, Inc.
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 #ifndef LIBCOUCHBASE_HTTP_H
18 #define LIBCOUCHBASE_HTTP_H 1
19 
20 #ifndef LIBCOUCHBASE_COUCHBASE_H
21 #error "Include libcouchbase/couchbase.h instead"
22 #endif
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27  typedef enum {
28  LCB_HTTP_STATUS_CONTINUE = 100,
29  LCB_HTTP_STATUS_SWITCHING_PROTOCOLS = 101,
30  LCB_HTTP_STATUS_PROCESSING = 102,
31  LCB_HTTP_STATUS_OK = 200,
32  LCB_HTTP_STATUS_CREATED = 201,
33  LCB_HTTP_STATUS_ACCEPTED = 202,
34  LCB_HTTP_STATUS_NON_AUTHORITATIVE_INFORMATION = 203,
35  LCB_HTTP_STATUS_NO_CONTENT = 204,
36  LCB_HTTP_STATUS_RESET_CONTENT = 205,
37  LCB_HTTP_STATUS_PARTIAL_CONTENT = 206,
38  LCB_HTTP_STATUS_MULTI_STATUS = 207,
39  LCB_HTTP_STATUS_MULTIPLE_CHOICES = 300,
40  LCB_HTTP_STATUS_MOVED_PERMANENTLY = 301,
41  LCB_HTTP_STATUS_FOUND = 302,
42  LCB_HTTP_STATUS_SEE_OTHER = 303,
43  LCB_HTTP_STATUS_NOT_MODIFIED = 304,
44  LCB_HTTP_STATUS_USE_PROXY = 305,
45  LCB_HTTP_STATUS_UNUSED = 306,
46  LCB_HTTP_STATUS_TEMPORARY_REDIRECT = 307,
47  LCB_HTTP_STATUS_BAD_REQUEST = 400,
48  LCB_HTTP_STATUS_UNAUTHORIZED = 401,
49  LCB_HTTP_STATUS_PAYMENT_REQUIRED = 402,
50  LCB_HTTP_STATUS_FORBIDDEN = 403,
51  LCB_HTTP_STATUS_NOT_FOUND = 404,
52  LCB_HTTP_STATUS_METHOD_NOT_ALLOWED = 405,
53  LCB_HTTP_STATUS_NOT_ACCEPTABLE = 406,
54  LCB_HTTP_STATUS_PROXY_AUTHENTICATION_REQUIRED = 407,
55  LCB_HTTP_STATUS_REQUEST_TIMEOUT = 408,
56  LCB_HTTP_STATUS_CONFLICT = 409,
57  LCB_HTTP_STATUS_GONE = 410,
58  LCB_HTTP_STATUS_LENGTH_REQUIRED = 411,
59  LCB_HTTP_STATUS_PRECONDITION_FAILED = 412,
60  LCB_HTTP_STATUS_REQUEST_ENTITY_TOO_LARGE = 413,
61  LCB_HTTP_STATUS_REQUEST_URI_TOO_LONG = 414,
62  LCB_HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE = 415,
63  LCB_HTTP_STATUS_REQUESTED_RANGE_NOT_SATISFIABLE = 416,
64  LCB_HTTP_STATUS_EXPECTATION_FAILED = 417,
65  LCB_HTTP_STATUS_UNPROCESSABLE_ENTITY = 422,
66  LCB_HTTP_STATUS_LOCKED = 423,
67  LCB_HTTP_STATUS_FAILED_DEPENDENCY = 424,
68  LCB_HTTP_STATUS_INTERNAL_SERVER_ERROR = 500,
69  LCB_HTTP_STATUS_NOT_IMPLEMENTED = 501,
70  LCB_HTTP_STATUS_BAD_GATEWAY = 502,
71  LCB_HTTP_STATUS_SERVICE_UNAVAILABLE = 503,
72  LCB_HTTP_STATUS_GATEWAY_TIMEOUT = 504,
73  LCB_HTTP_STATUS_HTTP_VERSION_NOT_SUPPORTED = 505,
74  LCB_HTTP_STATUS_INSUFFICIENT_STORAGE = 507
75  } lcb_http_status_t;
76 
77 #ifdef __cplusplus
78 }
79 #endif
80 
81 #endif