http 1.12.11devel
|
00001 /* 00002 * This file is part of the Sofia-SIP package 00003 * 00004 * Copyright (C) 2005 Nokia Corporation. 00005 * 00006 * Contact: Pekka Pessi <pekka.pessi@nokia-email.address.hidden> 00007 * 00008 * This library is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Lesser General Public License 00010 * as published by the Free Software Foundation; either version 2.1 of 00011 * the License, or (at your option) any later version. 00012 * 00013 * This library is distributed in the hope that it will be useful, but 00014 * WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public 00019 * License along with this library; if not, write to the Free Software 00020 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 00021 * 02110-1301 USA 00022 * 00023 */ 00024 00025 #ifndef HTTP_STATUS_H 00026 #define HTTP_STATUS_H 00027 00037 #include <sofia-sip/su_config.h> 00038 00039 SOFIA_BEGIN_DECLS 00040 00041 SOFIAPUBFUN char const *http_status_phrase(int status); 00042 00043 #define HTTP_100_CONTINUE 100, http_100_continue 00044 #define HTTP_101_SWITCHING 101, http_101_switching 00045 #define HTTP_200_OK 200, http_200_ok 00046 #define HTTP_201_CREATED 201, http_201_created 00047 #define HTTP_202_ACCEPTED 202, http_202_accepted 00048 #define HTTP_203_NON_AUTH_INFO 203, http_203_non_auth_info 00049 #define HTTP_204_NO_CONTENT 204, http_204_no_content 00050 #define HTTP_205_RESET_CONTENT 205, http_205_reset_content 00051 #define HTTP_206_PARTIAL_CONTENT 206, http_206_partial_content 00052 #define HTTP_300_MULTIPLE_CHOICES 300, http_300_multiple_choices 00053 #define HTTP_301_MOVED_PERMANENTLY 301, http_301_moved_permanently 00054 #define HTTP_302_FOUND 302, http_302_found 00055 #define HTTP_303_SEE_OTHER 303, http_303_see_other 00056 #define HTTP_304_NOT_MODIFIED 304, http_304_not_modified 00057 #define HTTP_305_USE_PROXY 305, http_305_use_proxy 00058 #define HTTP_307_TEMPORARY_REDIRECT 307, http_307_temporary_redirect 00059 #define HTTP_400_BAD_REQUEST 400, http_400_bad_request 00060 #define HTTP_401_UNAUTHORIZED 401, http_401_unauthorized 00061 #define HTTP_402_PAYMENT_REQUIRED 402, http_402_payment_required 00062 #define HTTP_403_FORBIDDEN 403, http_403_forbidden 00063 #define HTTP_404_NOT_FOUND 404, http_404_not_found 00064 #define HTTP_405_NOT_ALLOWED 405, http_405_not_allowed 00065 #define HTTP_406_NOT_ACCEPTABLE 406, http_406_not_acceptable 00066 #define HTTP_407_PROXY_AUTH 407, http_407_proxy_auth 00067 #define HTTP_408_TIMEOUT 408, http_408_timeout 00068 #define HTTP_409_CONFLICT 409, http_409_conflict 00069 #define HTTP_410_GONE 410, http_410_gone 00070 #define HTTP_411_NO_LENGTH 411, http_411_no_length 00071 #define HTTP_412_PRECONDITION 412, http_412_precondition 00072 #define HTTP_413_ENTITY_TOO_LARGE 413, http_413_entity_too_large 00073 #define HTTP_414_URI_TOO_LONG 414, http_414_uri_too_long 00074 #define HTTP_415_MEDIA_TYPE 415, http_415_media_type 00075 #define HTTP_416_REQUESTED_RANGE 416, http_416_requested_range 00076 #define HTTP_417_EXPECTATION 417, http_417_expectation 00077 #define HTTP_426_UPGRADE 426, http_426_upgrade 00078 #define HTTP_500_INTERNAL_SERVER 500, http_500_internal_server 00079 #define HTTP_501_NOT_IMPLEMENTED 501, http_501_not_implemented 00080 #define HTTP_502_BAD_GATEWAY 502, http_502_bad_gateway 00081 #define HTTP_503_NO_SERVICE 503, http_503_no_service 00082 #define HTTP_504_GATEWAY_TIMEOUT 504, http_504_gateway_timeout 00083 #define HTTP_505_HTTP_VERSION 505, http_505_http_version 00084 00085 SOFIAPUBVAR char const http_100_continue[]; 00086 SOFIAPUBVAR char const http_101_switching[]; 00087 SOFIAPUBVAR char const http_200_ok[]; 00088 SOFIAPUBVAR char const http_201_created[]; 00089 SOFIAPUBVAR char const http_202_accepted[]; 00090 SOFIAPUBVAR char const http_203_non_auth_info[]; 00091 SOFIAPUBVAR char const http_204_no_content[]; 00092 SOFIAPUBVAR char const http_205_reset_content[]; 00093 SOFIAPUBVAR char const http_206_partial_content[]; 00094 SOFIAPUBVAR char const http_300_multiple_choices[]; 00095 SOFIAPUBVAR char const http_301_moved_permanently[]; 00096 SOFIAPUBVAR char const http_302_found[]; 00097 SOFIAPUBVAR char const http_303_see_other[]; 00098 SOFIAPUBVAR char const http_304_not_modified[]; 00099 SOFIAPUBVAR char const http_305_use_proxy[]; 00100 SOFIAPUBVAR char const http_307_temporary_redirect[]; 00101 SOFIAPUBVAR char const http_400_bad_request[]; 00102 SOFIAPUBVAR char const http_401_unauthorized[]; 00103 SOFIAPUBVAR char const http_402_payment_required[]; 00104 SOFIAPUBVAR char const http_403_forbidden[]; 00105 SOFIAPUBVAR char const http_404_not_found[]; 00106 SOFIAPUBVAR char const http_405_not_allowed[]; 00107 SOFIAPUBVAR char const http_406_not_acceptable[]; 00108 SOFIAPUBVAR char const http_407_proxy_auth[]; 00109 SOFIAPUBVAR char const http_408_timeout[]; 00110 SOFIAPUBVAR char const http_409_conflict[]; 00111 SOFIAPUBVAR char const http_410_gone[]; 00112 SOFIAPUBVAR char const http_411_no_length[]; 00113 SOFIAPUBVAR char const http_412_precondition[]; 00114 SOFIAPUBVAR char const http_413_entity_too_large[]; 00115 SOFIAPUBVAR char const http_414_uri_too_long[]; 00116 SOFIAPUBVAR char const http_415_media_type[]; 00117 SOFIAPUBVAR char const http_416_requested_range[]; 00118 SOFIAPUBVAR char const http_417_expectation[]; 00119 SOFIAPUBVAR char const http_426_upgrade[]; 00120 SOFIAPUBVAR char const http_500_internal_server[]; 00121 SOFIAPUBVAR char const http_501_not_implemented[]; 00122 SOFIAPUBVAR char const http_502_bad_gateway[]; 00123 SOFIAPUBVAR char const http_503_no_service[]; 00124 SOFIAPUBVAR char const http_504_gateway_timeout[]; 00125 SOFIAPUBVAR char const http_505_http_version[]; 00126 00127 SOFIA_END_DECLS 00128 00129 #endif /* HTTP_STATUS_H */