applayerprotocols/httptransportfw/inc/WspError.h
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __WSPERROR_H__
       
    17 #define __WSPERROR_H__
       
    18 
       
    19 // System includes
       
    20 #include <e32std.h>
       
    21 #include <httperr.h>
       
    22 
       
    23 // Constants used in this file
       
    24 /**
       
    25 Error code base, error codes are relative to this constant.
       
    26 @publishedAll
       
    27 @released
       
    28 */
       
    29 const TInt KWspErrorBase = KHttpErrorBase - 180;
       
    30 
       
    31 enum TWspError
       
    32 /**
       
    33 WSP Error codes.
       
    34 @publishedAll
       
    35 @released
       
    36 */
       
    37 	{
       
    38 	KWspErrServiceNumberNotDefined			= KWspErrorBase,
       
    39 	KWspErrAccessPointNotSetUp				= KWspErrorBase - 1,
       
    40 	KWspErrBadRedirectedAddressData			= KWspErrorBase - 2,
       
    41 	KWspErrBearerNotSupported				= KWspErrorBase - 3,
       
    42 	KWspErrRequestTooBig					= KWspErrorBase - 4,
       
    43 	KWspErrStreamedRequestDataNotSupported	= KWspErrorBase - 5,	
       
    44 	KWspErrUnsupportedSendPrimitive			= KWspErrorBase - 6,
       
    45 	KWspErrSessionClosingOrSuspending		= KWspErrorBase - 7,
       
    46 	KWspErrExpectingBodyData				= KWspErrorBase - 8,
       
    47 	KWspErrTrailerHeadersNotExpected		= KWspErrorBase - 9,
       
    48 	KWspErrMissingHeader					= KWspErrorBase - 10,
       
    49 	KWspErrSMSBearerNotInCommsDB			= KWspErrorBase - 11,
       
    50 	KWspErrCouldNotCreateTransportHandler	= KWspErrorBase - 12,
       
    51 	KWspErrRequiredServicesNotSupported		= KWspErrorBase - 13,
       
    52 	KWtlsErrConfigurationFailed				= KWspErrorBase - 14,
       
    53 	KWtlsErrPhase1HandshakeFailed			= KWspErrorBase - 15,
       
    54 	KWtlsErrPhase2HandshakeFailed			= KWspErrorBase - 16,
       
    55 	KWtlsErrInvalidServerCert				= KWspErrorBase - 17,
       
    56 	KWtlsErrUntrustedServerCert				= KWspErrorBase - 18,
       
    57 	KWtlsErrNegotiatedConfigRejected		= KWspErrorBase - 19
       
    58 	};
       
    59 
       
    60 #endif //  __WSPERROR_H__