|
1 /* |
|
2 * Copyright (c) 2005 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: XDM errors |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __XDMERRORS__ |
|
22 #define __XDMERRORS__ |
|
23 |
|
24 |
|
25 // Error range -32400 -> -32429 ( first and last number included) |
|
26 |
|
27 #define XDM_ERROR_BASE -32400 |
|
28 |
|
29 enum |
|
30 { |
|
31 // General error |
|
32 KXcapErrorGeneral = XDM_ERROR_BASE, |
|
33 |
|
34 /* Errors from the XCAP Application Usages */ |
|
35 |
|
36 // Invalid element or attribute data value |
|
37 KXcapErrorIllegalDataValue = XDM_ERROR_BASE -1, |
|
38 |
|
39 // Mandatory element missing from document |
|
40 KXcapErrorMissingRequiredElement = XDM_ERROR_BASE -2, |
|
41 |
|
42 // Mandatory attribute missing from element |
|
43 KXcapErrorMissingRequiredAttribute = XDM_ERROR_BASE -3, |
|
44 |
|
45 // Restricted element occurence rule |
|
46 KXcapErrorTooManyOccurencies = XDM_ERROR_BASE -4, |
|
47 |
|
48 // Illegal elements, wrong element order, etc |
|
49 KXcapErrorSchemaViolation = XDM_ERROR_BASE -5, |
|
50 |
|
51 // Element or attribute value against enumerated values |
|
52 KXcapErrorEnumerationRule = XDM_ERROR_BASE -6, |
|
53 |
|
54 // Illegal root element in document |
|
55 KXcapErrorIllegalRootElement = XDM_ERROR_BASE -7, |
|
56 |
|
57 // Mandatory value missing from element |
|
58 KXcapErrorMissingRequiredElementValue = XDM_ERROR_BASE -8, |
|
59 |
|
60 /* Errors from the XCAP Protocol */ |
|
61 |
|
62 // Could not create a network connection |
|
63 KXcapErrorNetworkNotAvailabe = XDM_ERROR_BASE -9, |
|
64 |
|
65 // General HTTP Server Error - 5xx |
|
66 KXcapErrorHttpServer = XDM_ERROR_BASE -10, |
|
67 |
|
68 // General HTTP Client Error - 4xx |
|
69 KXcapErrorHttpClient = XDM_ERROR_BASE -11, |
|
70 |
|
71 // Bad request - 400 |
|
72 KXcapErrorHttpBadRequest = XDM_ERROR_BASE -12, |
|
73 |
|
74 // The client was not authoried to use the resource - 401 |
|
75 KXcapErrorHttpUnauthorised = XDM_ERROR_BASE -13, |
|
76 |
|
77 // Use of the resource has been forbidden - 403 |
|
78 KXcapErrorHttpForbidden = XDM_ERROR_BASE -14, |
|
79 |
|
80 // The requested resource could not be found - 404 |
|
81 KXcapErrorHttpNotFound = XDM_ERROR_BASE -15, |
|
82 |
|
83 // The request timed out - 408 |
|
84 KXcapErrorHttpRequestTimeout = XDM_ERROR_BASE -16, |
|
85 |
|
86 // An HTTP conflict - 409 |
|
87 KXcapErrorHttpConflict = XDM_ERROR_BASE -17, |
|
88 |
|
89 // Precondition failed - 412 |
|
90 KXcapErrorHttpPrecondFailed = XDM_ERROR_BASE -18, |
|
91 |
|
92 // An unrecoverable conflict |
|
93 KXcapErrorUnrecoverableConflict = XDM_ERROR_BASE -19, |
|
94 |
|
95 // Authentication || user data integrity problems |
|
96 KXcapErrorAuthentication = XDM_ERROR_BASE -20 |
|
97 }; |
|
98 |
|
99 |
|
100 |
|
101 #endif //__XDMERRORS__ |
|
102 |
|
103 // End of File |