http  1.12.11devel
http_status.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Sofia-SIP package
3  *
4  * Copyright (C) 2005 Nokia Corporation.
5  *
6  * Contact: Pekka Pessi <pekka.pessi@nokia-email.address.hidden>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation; either version 2.1 of
11  * the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  *
23  */
24 
25 #ifndef HTTP_STATUS_H
26 #define HTTP_STATUS_H
27 
37 #include <sofia-sip/su_config.h>
38 
39 SOFIA_BEGIN_DECLS
40 
41 SOFIAPUBFUN char const *http_status_phrase(int status);
42 
43 #define HTTP_100_CONTINUE 100, http_100_continue
44 #define HTTP_101_SWITCHING 101, http_101_switching
45 #define HTTP_200_OK 200, http_200_ok
46 #define HTTP_201_CREATED 201, http_201_created
47 #define HTTP_202_ACCEPTED 202, http_202_accepted
48 #define HTTP_203_NON_AUTH_INFO 203, http_203_non_auth_info
49 #define HTTP_204_NO_CONTENT 204, http_204_no_content
50 #define HTTP_205_RESET_CONTENT 205, http_205_reset_content
51 #define HTTP_206_PARTIAL_CONTENT 206, http_206_partial_content
52 #define HTTP_300_MULTIPLE_CHOICES 300, http_300_multiple_choices
53 #define HTTP_301_MOVED_PERMANENTLY 301, http_301_moved_permanently
54 #define HTTP_302_FOUND 302, http_302_found
55 #define HTTP_303_SEE_OTHER 303, http_303_see_other
56 #define HTTP_304_NOT_MODIFIED 304, http_304_not_modified
57 #define HTTP_305_USE_PROXY 305, http_305_use_proxy
58 #define HTTP_307_TEMPORARY_REDIRECT 307, http_307_temporary_redirect
59 #define HTTP_400_BAD_REQUEST 400, http_400_bad_request
60 #define HTTP_401_UNAUTHORIZED 401, http_401_unauthorized
61 #define HTTP_402_PAYMENT_REQUIRED 402, http_402_payment_required
62 #define HTTP_403_FORBIDDEN 403, http_403_forbidden
63 #define HTTP_404_NOT_FOUND 404, http_404_not_found
64 #define HTTP_405_NOT_ALLOWED 405, http_405_not_allowed
65 #define HTTP_406_NOT_ACCEPTABLE 406, http_406_not_acceptable
66 #define HTTP_407_PROXY_AUTH 407, http_407_proxy_auth
67 #define HTTP_408_TIMEOUT 408, http_408_timeout
68 #define HTTP_409_CONFLICT 409, http_409_conflict
69 #define HTTP_410_GONE 410, http_410_gone
70 #define HTTP_411_NO_LENGTH 411, http_411_no_length
71 #define HTTP_412_PRECONDITION 412, http_412_precondition
72 #define HTTP_413_ENTITY_TOO_LARGE 413, http_413_entity_too_large
73 #define HTTP_414_URI_TOO_LONG 414, http_414_uri_too_long
74 #define HTTP_415_MEDIA_TYPE 415, http_415_media_type
75 #define HTTP_416_REQUESTED_RANGE 416, http_416_requested_range
76 #define HTTP_417_EXPECTATION 417, http_417_expectation
77 #define HTTP_426_UPGRADE 426, http_426_upgrade
78 #define HTTP_500_INTERNAL_SERVER 500, http_500_internal_server
79 #define HTTP_501_NOT_IMPLEMENTED 501, http_501_not_implemented
80 #define HTTP_502_BAD_GATEWAY 502, http_502_bad_gateway
81 #define HTTP_503_NO_SERVICE 503, http_503_no_service
82 #define HTTP_504_GATEWAY_TIMEOUT 504, http_504_gateway_timeout
83 #define HTTP_505_HTTP_VERSION 505, http_505_http_version
84 
85 SOFIAPUBVAR char const http_100_continue[];
86 SOFIAPUBVAR char const http_101_switching[];
87 SOFIAPUBVAR char const http_200_ok[];
88 SOFIAPUBVAR char const http_201_created[];
89 SOFIAPUBVAR char const http_202_accepted[];
90 SOFIAPUBVAR char const http_203_non_auth_info[];
91 SOFIAPUBVAR char const http_204_no_content[];
92 SOFIAPUBVAR char const http_205_reset_content[];
93 SOFIAPUBVAR char const http_206_partial_content[];
94 SOFIAPUBVAR char const http_300_multiple_choices[];
95 SOFIAPUBVAR char const http_301_moved_permanently[];
96 SOFIAPUBVAR char const http_302_found[];
97 SOFIAPUBVAR char const http_303_see_other[];
98 SOFIAPUBVAR char const http_304_not_modified[];
99 SOFIAPUBVAR char const http_305_use_proxy[];
100 SOFIAPUBVAR char const http_307_temporary_redirect[];
101 SOFIAPUBVAR char const http_400_bad_request[];
102 SOFIAPUBVAR char const http_401_unauthorized[];
103 SOFIAPUBVAR char const http_402_payment_required[];
104 SOFIAPUBVAR char const http_403_forbidden[];
105 SOFIAPUBVAR char const http_404_not_found[];
106 SOFIAPUBVAR char const http_405_not_allowed[];
107 SOFIAPUBVAR char const http_406_not_acceptable[];
108 SOFIAPUBVAR char const http_407_proxy_auth[];
109 SOFIAPUBVAR char const http_408_timeout[];
110 SOFIAPUBVAR char const http_409_conflict[];
111 SOFIAPUBVAR char const http_410_gone[];
112 SOFIAPUBVAR char const http_411_no_length[];
113 SOFIAPUBVAR char const http_412_precondition[];
114 SOFIAPUBVAR char const http_413_entity_too_large[];
115 SOFIAPUBVAR char const http_414_uri_too_long[];
116 SOFIAPUBVAR char const http_415_media_type[];
117 SOFIAPUBVAR char const http_416_requested_range[];
118 SOFIAPUBVAR char const http_417_expectation[];
119 SOFIAPUBVAR char const http_426_upgrade[];
120 SOFIAPUBVAR char const http_500_internal_server[];
121 SOFIAPUBVAR char const http_501_not_implemented[];
122 SOFIAPUBVAR char const http_502_bad_gateway[];
123 SOFIAPUBVAR char const http_503_no_service[];
124 SOFIAPUBVAR char const http_504_gateway_timeout[];
125 SOFIAPUBVAR char const http_505_http_version[];
126 
127 SOFIA_END_DECLS
128 
129 #endif /* HTTP_STATUS_H */
SOFIAPUBVAR
#define SOFIAPUBVAR
SOFIAPUBFUN
#define SOFIAPUBFUN
su_config.h

Sofia-SIP 1.12.11devel - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.