1.1 --- a/epoc32/include/httpstd.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/httpstd.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,96 @@
1.4 -httpstd.h
1.5 +// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +// All rights reserved.
1.7 +// This component and the accompanying materials are made available
1.8 +// 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
1.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +// Purpose: This file sets the values for HTTP's return/error codes and
1.19 +// panic codes.
1.20 +//
1.21 +//
1.22 +
1.23 +#if !defined(__HTTPSTD_H__)
1.24 +#define __HTTPSTD_H__
1.25 +
1.26 +// System includes
1.27 +//
1.28 +#if !defined(__E32STD_H__)
1.29 +#include <e32std.h>
1.30 +#endif
1.31 +#if !defined(__WAPENGSTD_H__)
1.32 +#include <wapengstd.h>
1.33 +#endif
1.34 +
1.35 +enum
1.36 +/**
1.37 +Base values of code ranges
1.38 +@publishedAll
1.39 +@deprecated
1.40 +*/{
1.41 + EHttpRetCodeBase = -20000,
1.42 + EHttpPanicCodeBase = EHttpRetCodeBase - 200
1.43 + };
1.44 +
1.45 +typedef enum
1.46 +/**
1.47 +Return/leave codes for HTTPUTIL and HTTP plugins
1.48 +@publishedAll
1.49 +@deprecated
1.50 +*/
1.51 + {
1.52 + // Informational (+ve) status codes
1.53 + 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.
1.54 + EHttpAuthenticationAborted = KHttpPluginStatusBase + 11,// The user cancelled the password box
1.55 + EHttpAuthenticationFailed = KHttpPluginStatusBase + 10,// The user's password was rejected by the origin server
1.56 + EHttpNoError = KErrNone, // No error
1.57 + // Error (-ve) status codes
1.58 + EHttpGeneralError = EHttpRetCodeBase, // Unspecified error condition
1.59 + EHttpCannotFindServer = EHttpRetCodeBase - 1, // URL specified a non-existent or inaccessible domain
1.60 + EHttpCannotFindPlugin = EHttpRetCodeBase - 2, // Plug-in server failed to create an HTTP plugin
1.61 + EHttpUnsupportedMethod = EHttpRetCodeBase - 3, // An HTTP method was specified that is not supported
1.62 + EHttpWapAPReadFailure = EHttpRetCodeBase - 4, // An error occurred when reading the WAP AP from CommsDB
1.63 + EHttpNetDialSetupFailed = EHttpRetCodeBase - 5, // Failed to configure Net Dial
1.64 + EHttpWtlsConfigFailed = EHttpRetCodeBase - 6, // Failed to configure the WTLS layer of the WAP Stack
1.65 + EHttpWtlsBadServerCert = EHttpRetCodeBase - 7, // WTLS rejected the certificate obtained from the WAP GW
1.66 + EHttpWtlsServerCertRejected = EHttpRetCodeBase - 8, // The user rejected the certificate from the WAP GW
1.67 + EHttpWtlsCipherRejected = EHttpRetCodeBase - 9, // The user rejected the cipher strength negotiated in WTLS
1.68 + EHttpGatewayCannotBeReached = EHttpRetCodeBase - 10,// A session could not be established with the WAP Gateway
1.69 + EHttpGatewayTransactionAbort = EHttpRetCodeBase - 11,// A transaction was aborted by the gateway or the stack
1.70 + EHttpGatewaySessionDisconnect = EHttpRetCodeBase - 12,// The session was disconnected by the WAP Gateway
1.71 + EHttpCancellationAbort = EHttpRetCodeBase - 13,// Error code for leave when cancellation has occured during RunL()
1.72 + EHttpReceivingErrorDeck = EHttpRetCodeBase - 14 // Could not find document, so receiving an error deck
1.73 + } THttpReturnCode;
1.74 +
1.75 +// Note that HTTP Status codes series 40x and 50x are error conditions. They
1.76 +// will be added to the EHttpRetCodeBase to send to the HTTP Data Provider
1.77 +// observer. e.g. HTTP/404 will become EHttpRetCodeBase-404 = -20404. The
1.78 +// exception to this rule is HTTP/401, which gets fully handled in HTTP and
1.79 +// so is treated above as an informational status message.
1.80 +
1.81 +typedef enum
1.82 +/**
1.83 +Panic codes for HTTPUTIL and HTTP plugins
1.84 +@publishedAll
1.85 +@deprecated
1.86 +*/
1.87 + {
1.88 + EHttpGeneralPanic = EHttpPanicCodeBase, // Unspecified panic condition
1.89 + EHttpDialInNotSupported = EHttpPanicCodeBase - 1, // The WAP Access Point specified a dial-in ISP!
1.90 + EHttpWapAccessPointInfoChanged = EHttpPanicCodeBase - 2, // The WAP AP info changed between initial read and
1.91 + // the subsequent NetDial override (debug only)
1.92 + EHttpCommDBContainsBadData = EHttpPanicCodeBase - 3, // Comms DB contains garbled/inconsistent WAP AP data
1.93 + EHttpConnectionLessNotSupported = EHttpPanicCodeBase - 4, // Comms DB specified a CL mode, which isn't available (yet)
1.94 + EHttpNoHandlerAvailable = EHttpPanicCodeBase - 5, // Very bad situation for HTTP Methods
1.95 + EHttpResourceFileLoadFailed = EHttpPanicCodeBase - 6, // Resource file missing or corrupt
1.96 + EHttpReservedForFutureExpansion = EHttpPanicCodeBase - 7 // Feature not available - reserved for BC only
1.97 + } THttpPanicCode;
1.98 +
1.99 +
1.100 +#endif // __HTTPSTD_H__