src/include/common/http/errors.h

00001 /*
00002  * Copyright (C) 2003-2007 Funambol, Inc
00003  *
00004  * This program is free software; you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License version 2 as
00006  * published by the Free Software Foundation.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY, TITLE, NONINFRINGEMENT or FITNESS FOR A PARTICULAR
00011  * PURPOSE.  See the GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program; if not, write to the Free Software
00015  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00016  * 02111-1307  USA
00017  */
00018 #ifndef INCL_HTTP_ERRORS
00019 #define INCL_HTTP_ERRORS
00020 
00022 #define ERR_TRANSPORT_BASE              2000
00023 #define ERR_NETWORK_INIT                ERR_TRANSPORT_BASE
00024 #define ERR_CONNECT                     ERR_TRANSPORT_BASE+ 1
00025 #define ERR_HOST_NOT_FOUND              ERR_TRANSPORT_BASE+ 2
00026 #define ERR_READING_CONTENT             ERR_TRANSPORT_BASE+ 3
00027 #define ERR_WRITING_CONTENT             ERR_TRANSPORT_BASE+ 4
00028 #define ERR_HTTP                        ERR_TRANSPORT_BASE+50
00029 #define ERR_HTTP_MISSING_CONTENT_LENGTH ERR_TRANSPORT_BASE+51
00030 #define ERR_SERVER_ERROR                ERR_TRANSPORT_BASE+52
00031 
00032 #define ERR_HTTP_STATUS_NOT_OK          ERR_TRANSPORT_BASE+53
00033 #define ERR_CREDENTIAL                  401
00034 #define ERR_CLIENT_NOT_NOTIFIABLE       420
00035 #define ERR_CTP_ALLOWED                 421
00036 
00037 #define ERR_TRANSPORT_LAST              2999
00038 
00039 #define ERRMSG_NETWORK_INIT "Network initialization error"
00040 #define ERRMSG_CONNECT "Connection failure"
00041 #define ERRMSG_HOST_NOT_FOUND "Host not found"
00042 #define ERRMSG_READING_CONTENT "Error reading content"
00043 #define ERRMSG_WRITING_CONTENT "Error writing content"
00044 #define ERRMSG_HTTP_MISSING_CONTENT_LENGTH "Missing Content-Length header"
00045 #define ERRMSG_SERVER_ERROR ("Server error")
00046 
00047 #endif

Generated on Tue Oct 30 15:11:24 2007 for Funambol C++ Client Library by  doxygen 1.5.2