1 // Copyright (c) 1998-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // Purpose: This file sets the values for HTTP's return/error codes and
19 #if !defined(__HTTPSTD_H__)
24 #if !defined(__E32STD_H__)
27 #if !defined(__WAPENGSTD_H__)
28 #include <wapengstd.h>
33 Base values of code ranges
37 EHttpRetCodeBase = -20000,
38 EHttpPanicCodeBase = EHttpRetCodeBase - 200
43 Return/leave codes for HTTPUTIL and HTTP plugins
48 // Informational (+ve) status codes
49 EHttp_401_Unauthorized = KHttpPluginStatusBase + 401,// occurs when HTTP authentication is used, username/password dialogs raised as a response. Need to consider how UI deals with authentication failures here.
50 EHttpAuthenticationAborted = KHttpPluginStatusBase + 11,// The user cancelled the password box
51 EHttpAuthenticationFailed = KHttpPluginStatusBase + 10,// The user's password was rejected by the origin server
52 EHttpNoError = KErrNone, // No error
53 // Error (-ve) status codes
54 EHttpGeneralError = EHttpRetCodeBase, // Unspecified error condition
55 EHttpCannotFindServer = EHttpRetCodeBase - 1, // URL specified a non-existent or inaccessible domain
56 EHttpCannotFindPlugin = EHttpRetCodeBase - 2, // Plug-in server failed to create an HTTP plugin
57 EHttpUnsupportedMethod = EHttpRetCodeBase - 3, // An HTTP method was specified that is not supported
58 EHttpWapAPReadFailure = EHttpRetCodeBase - 4, // An error occurred when reading the WAP AP from CommsDB
59 EHttpNetDialSetupFailed = EHttpRetCodeBase - 5, // Failed to configure Net Dial
60 EHttpWtlsConfigFailed = EHttpRetCodeBase - 6, // Failed to configure the WTLS layer of the WAP Stack
61 EHttpWtlsBadServerCert = EHttpRetCodeBase - 7, // WTLS rejected the certificate obtained from the WAP GW
62 EHttpWtlsServerCertRejected = EHttpRetCodeBase - 8, // The user rejected the certificate from the WAP GW
63 EHttpWtlsCipherRejected = EHttpRetCodeBase - 9, // The user rejected the cipher strength negotiated in WTLS
64 EHttpGatewayCannotBeReached = EHttpRetCodeBase - 10,// A session could not be established with the WAP Gateway
65 EHttpGatewayTransactionAbort = EHttpRetCodeBase - 11,// A transaction was aborted by the gateway or the stack
66 EHttpGatewaySessionDisconnect = EHttpRetCodeBase - 12,// The session was disconnected by the WAP Gateway
67 EHttpCancellationAbort = EHttpRetCodeBase - 13,// Error code for leave when cancellation has occured during RunL()
68 EHttpReceivingErrorDeck = EHttpRetCodeBase - 14 // Could not find document, so receiving an error deck
71 // Note that HTTP Status codes series 40x and 50x are error conditions. They
72 // will be added to the EHttpRetCodeBase to send to the HTTP Data Provider
73 // observer. e.g. HTTP/404 will become EHttpRetCodeBase-404 = -20404. The
74 // exception to this rule is HTTP/401, which gets fully handled in HTTP and
75 // so is treated above as an informational status message.
79 Panic codes for HTTPUTIL and HTTP plugins
84 EHttpGeneralPanic = EHttpPanicCodeBase, // Unspecified panic condition
85 EHttpDialInNotSupported = EHttpPanicCodeBase - 1, // The WAP Access Point specified a dial-in ISP!
86 EHttpWapAccessPointInfoChanged = EHttpPanicCodeBase - 2, // The WAP AP info changed between initial read and
87 // the subsequent NetDial override (debug only)
88 EHttpCommDBContainsBadData = EHttpPanicCodeBase - 3, // Comms DB contains garbled/inconsistent WAP AP data
89 EHttpConnectionLessNotSupported = EHttpPanicCodeBase - 4, // Comms DB specified a CL mode, which isn't available (yet)
90 EHttpNoHandlerAvailable = EHttpPanicCodeBase - 5, // Very bad situation for HTTP Methods
91 EHttpResourceFileLoadFailed = EHttpPanicCodeBase - 6, // Resource file missing or corrupt
92 EHttpReservedForFutureExpansion = EHttpPanicCodeBase - 7 // Feature not available - reserved for BC only
96 #endif // __HTTPSTD_H__