src/include/common/http/errors.h

00001 /*
00002  * Copyright (C) 2003-2007 Funambol
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 as published by
00006  * the Free Software Foundation; either version 2 of the License, or
00007  * (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  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 
00036 #define ERR_TRANSPORT_LAST              2999
00037 
00038 #define ERRMSG_NETWORK_INIT "Network initialization error"
00039 #define ERRMSG_CONNECT "Connection failure"
00040 #define ERRMSG_HOST_NOT_FOUND "Host not found"
00041 #define ERRMSG_READING_CONTENT "Error reading content"
00042 #define ERRMSG_WRITING_CONTENT "Error writing content"
00043 #define ERRMSG_HTTP_MISSING_CONTENT_LENGTH "Missing Content-Length header"
00044 #define ERRMSG_SERVER_ERROR ("Server error")
00045 
00046 #endif

Generated on Fri Apr 27 12:29:18 2007 for Funambol C++ Client Library by  doxygen 1.5.2