|
1 /* |
|
2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Wireless Village CSP protocol error codes. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __PENGWVPRESENCEERRORS2_H |
|
19 #define __PENGWVPRESENCEERRORS2_H |
|
20 |
|
21 |
|
22 /** |
|
23 * Wireless Village CSP status code range. |
|
24 * Range is inclusive. |
|
25 * |
|
26 * @since 3.0 |
|
27 */ |
|
28 #define KPEngWVStatusCodeBase 100 // CSI: 8 # |
|
29 #define KPEngWVStatusCodeTop 999 // CSI: 8 # |
|
30 |
|
31 |
|
32 |
|
33 /** |
|
34 * Wireless Village CSP protocol error codes. |
|
35 * |
|
36 * WV CSP status codes received from network transactions |
|
37 * are translated into Wireless Village CSP error code range |
|
38 * with following mapping: |
|
39 * <WV-CSP-error-code> = KPEngErrorWVServerResponseBase - <WV-CSP-status-code> |
|
40 * WV CSP status code 200, succesfull is handled specially and |
|
41 * mapped to KErrNone. |
|
42 * |
|
43 * |
|
44 * NOTE!! Mapping algorithm above and error symbols defined |
|
45 * below are in sync with algorithm used by the WV Engine. |
|
46 * (See WV Engine error header: impserrors.h) |
|
47 * (With exeption of 200 - KErrNone) |
|
48 * |
|
49 * @since 3.0 |
|
50 */ |
|
51 enum // CSI: 28 # |
|
52 { |
|
53 KPEngErrorWVServerResponseBase = -34000, |
|
54 |
|
55 |
|
56 //Successful |
|
57 KPEngNwErrSuccessful = KPEngErrorWVServerResponseBase - 200, |
|
58 KPEngNwErrPartiallySuccessful = KPEngErrorWVServerResponseBase - 201, |
|
59 KPEngNwErrAccepted = KPEngErrorWVServerResponseBase - 202, |
|
60 |
|
61 |
|
62 // Client errors |
|
63 KPEngNwErrBadRequest = KPEngErrorWVServerResponseBase - 400, |
|
64 KPEngNwErrUnauthorized = KPEngErrorWVServerResponseBase - 401, |
|
65 KPEngNwErrBadParameter = KPEngErrorWVServerResponseBase - 402, |
|
66 KPEngNwErrForbidden = KPEngErrorWVServerResponseBase - 403, |
|
67 KPEngNwErrNotFound = KPEngErrorWVServerResponseBase - 404, |
|
68 KPEngNwErrServiceNotSupported = KPEngErrorWVServerResponseBase - 405, |
|
69 KPEngNwErrRequestTimeout = KPEngErrorWVServerResponseBase - 408, |
|
70 KPEngNwErrInvalidPassword = KPEngErrorWVServerResponseBase - 409, |
|
71 KPEngNwErrUnableToDeliver = KPEngErrorWVServerResponseBase - 410, |
|
72 KPEngNwErrUnsupportedMediaType = KPEngErrorWVServerResponseBase - 415, |
|
73 KPEngNwErrInvalidTransaction = KPEngErrorWVServerResponseBase - 420, |
|
74 KPEngNwErrUserIDAndClientIDDoNotMatch = KPEngErrorWVServerResponseBase - 422, |
|
75 KPEngNwErrInvalidInvitationID = KPEngErrorWVServerResponseBase - 423, |
|
76 KPEngNwErrInvalidSearchID = KPEngErrorWVServerResponseBase - 424, |
|
77 KPEngNwErrInvalidSearchIndex = KPEngErrorWVServerResponseBase - 425, |
|
78 KPEngNwErrInvalidMessageID = KPEngErrorWVServerResponseBase - 426, |
|
79 KPEngNwErrUnauthorizedGroupMembership = KPEngErrorWVServerResponseBase - 431, |
|
80 KPEngNwErrResponseTooLarge = KPEngErrorWVServerResponseBase - 432, |
|
81 |
|
82 |
|
83 //Server errors |
|
84 KPEngNwErrInternalServerOrNetworkError = KPEngErrorWVServerResponseBase - 500, |
|
85 KPEngNwErrNotImplemented = KPEngErrorWVServerResponseBase - 501, |
|
86 KPEngNwErrServiceUnavailable = KPEngErrorWVServerResponseBase - 503, |
|
87 KPEngNwErrTimeout = KPEngErrorWVServerResponseBase - 504, |
|
88 KPEngNwErrVersionNotSupported = KPEngErrorWVServerResponseBase - 505, |
|
89 KPEngNwErrServiceNotAgreed = KPEngErrorWVServerResponseBase - 506, |
|
90 KPEngNwErrMessageQueueIsFull = KPEngErrorWVServerResponseBase - 507, |
|
91 KPEngNwErrDomainNotSupported = KPEngErrorWVServerResponseBase - 516, |
|
92 KPEngNwErrUnrespondedPresenceRequest = KPEngErrorWVServerResponseBase - 521, |
|
93 KPEngNwErrUnrespondedGroupRequest = KPEngErrorWVServerResponseBase - 522, |
|
94 KPEngNwErrUnknownUser = KPEngErrorWVServerResponseBase - 531, |
|
95 KPEngNwErrMessageRecipientNotLoggedIn = KPEngErrorWVServerResponseBase - 533, |
|
96 KPEngNwErrMessageRecipientUnauthorized = KPEngErrorWVServerResponseBase - 534, |
|
97 KPEngNwErrSearchTimedOut = KPEngErrorWVServerResponseBase - 535, |
|
98 KPEngNwErrTooManyHits = KPEngErrorWVServerResponseBase - 536, |
|
99 KPEngNwErrTooBroadSearchCriteria = KPEngErrorWVServerResponseBase - 537, |
|
100 KPEngNwErrMessageHasBeenRejected = KPEngErrorWVServerResponseBase - 538, |
|
101 KPEngNwErrHeaderEncodingNotSupported = KPEngErrorWVServerResponseBase - 540, |
|
102 |
|
103 |
|
104 //Session errors |
|
105 KPEngNwErrSessionExpired = KPEngErrorWVServerResponseBase - 600, |
|
106 KPEngNwErrForcedLogout = KPEngErrorWVServerResponseBase - 601, |
|
107 KPEngNwErrAlreadyLoggedIn = KPEngErrorWVServerResponseBase - 603, |
|
108 KPEngNwErrInvalidSessionNotLoggedIn = KPEngErrorWVServerResponseBase - 604, |
|
109 KPEngNwErrNewValueNotAccepted = KPEngErrorWVServerResponseBase - 605, |
|
110 |
|
111 |
|
112 //Presence and contact list errors |
|
113 KPEngNwErrContactListDoesNotExist = KPEngErrorWVServerResponseBase - 700, |
|
114 KPEngNwErrContactListAlreadyExists = KPEngErrorWVServerResponseBase - 701, |
|
115 KPEngNwErrInvalidOrUnSupportedUserProperties = KPEngErrorWVServerResponseBase - 702, |
|
116 KPEngNwErrInvalidOrUnSupportedPresenceAttribute = KPEngErrorWVServerResponseBase - 750, |
|
117 KPEngNwErrInvalidOrUnSupportedPresenceValue = KPEngErrorWVServerResponseBase - 751, |
|
118 KPEngNwErrInvalidOrUnSupportedContactListProperty = KPEngErrorWVServerResponseBase - 752, |
|
119 KPEngNwErrMaxNumberOfContactListsReached = KPEngErrorWVServerResponseBase - 753, |
|
120 KPEngNwErrMaxNumberOfContactsReached = KPEngErrorWVServerResponseBase - 754, |
|
121 KPEngNwErrMaxNumberOfAttributeListsReached = KPEngErrorWVServerResponseBase - 755, |
|
122 KPEngNwErrAutomaticSubscriptionNotSupported = KPEngErrorWVServerResponseBase - 760, |
|
123 |
|
124 |
|
125 //General errors |
|
126 KPEngNwErrMultipleErrors = KPEngErrorWVServerResponseBase - 900, |
|
127 KPEngNwErrGeneralAddressError = KPEngErrorWVServerResponseBase - 901, |
|
128 KPEngNwErrNotEnoughCreditsForOperation = KPEngErrorWVServerResponseBase - 902, |
|
129 KPEngNwErrOperationRequiresHigherServiceClass = KPEngErrorWVServerResponseBase - 903, |
|
130 |
|
131 |
|
132 KPEngErrorWVServerResponseLow = -34999 |
|
133 }; |
|
134 |
|
135 #endif // __PENGWVPRESENCEERRORS2_H |
|
136 |
|
137 // End of File |
|
138 |
|
139 |