Symbian
 Developer Library

DEVELOPER LIBRARY

[Index] [Glossary] [Previous] [Next]



Location: httperr.h

Class HTTPStatus

class HTTPStatus

Support

Supported from 7.0

Description

The complete set of HTTP status codes, as defined in RFC2616.

Defined in HTTPStatus:
(anonymous), EAccepted, EBadGateway, EBadRequest, EConflict, EContinue, ECreated, EExpectationFailed, EForbidden, EFound, EGatewayTimeout, EGone, EHTTPVersionNotSupported, EInternalServerError, ELengthRequired, EMethodNotAllowed, EMovedPermanently, EMultipleChoices, ENoContent, ENonAuthoritativeInfo, ENotAcceptable, ENotFound, ENotImplemented, ENotModified, EOk, EPartialContent, EPaymentRequired, EPreconditionFailed, EProxyAuthenticationRequired, ERequestEntityTooLarge, ERequestTimeout, ERequestURITooLong, ERequestedRangeNotSatisfiable, EResetContent, ESeeOther, EServiceUnavailable, ESwitchingProtocols, ETemporaryRedirect, EUnauthorized, EUnsupportedMediaType, EUnused, EUseProxy, IsClientError(), IsInformational(), IsRedirection(), IsServerError(), IsSuccessful()


Member Enumerations


Enum (anonymous)

N/A

Description

Enumerates the HTTP status codes.

EContinue

100 Continue.

ESwitchingProtocols

101 Switching Protocols.

EOk

200 OK.

ECreated

201 Created.

EAccepted

202 Accepted.

ENonAuthoritativeInfo

203 Non-Authoritative Information.

ENoContent

204 No Content.

EResetContent

205 Reset Content.

EPartialContent

206 Partial Content.

EMultipleChoices

300 Multiple Choices.

EMovedPermanently

301 Moved Permanently.

EFound

302 Found.

Note, this is deprecated in HTTP/1.1 - 307 will be used instead.

ESeeOther

303 See Other.

ENotModified

304 Not Modified.

EUseProxy

305 Use Proxy.

EUnused

306 (Unused).

ETemporaryRedirect

307 Temporary Redirect.

EBadRequest

400 Bad Request.

EUnauthorized

401 Unauthorized.

EPaymentRequired

402 Payment Required.

Note, this is reserved in HTTP/1.1.

EForbidden

403 Forbidden.

ENotFound

404 Not Found.

EMethodNotAllowed

405 Method Not Allowed.

ENotAcceptable

406 Not Acceptable.

EProxyAuthenticationRequired

407 Proxy Authentication Required.

ERequestTimeout

408 Request Timeout.

EConflict

409 Conflict.

EGone

410 Gone.

ELengthRequired

411 Length Required.

EPreconditionFailed

412 Precondition Failed.

ERequestEntityTooLarge

413 Request Entity Too Large.

ERequestURITooLong

414 Request-URI Too Long.

EUnsupportedMediaType

415 Unsupported Media Type.

ERequestedRangeNotSatisfiable

416 Requested Range Not Satisfiable.

EExpectationFailed

417 Expectation Failed.

EInternalServerError

500 Internal Server Error.

ENotImplemented

501 Not Implemented.

EBadGateway

502 Bad Gateway.

EServiceUnavailable

503 Service Unavailable.

EGatewayTimeout

504 Gateway Timeout.

EHTTPVersionNotSupported

505 HTTP Version Not Supported.

[Top]


Member Functions


IsInformational()

inline static TBool IsInformational(TInt aStatus);

Description

Tests if the specified status code is in the 1xx Informational range.

Parameters

TInt aStatus

Status code

Return value

TBool

ETrue if the specified status code is in the 1xx Informational range.


IsSuccessful()

inline static TBool IsSuccessful(TInt aStatus);

Description

Tests if the specified status code is in the 2xx Successful range.

Parameters

TInt aStatus

Status code

Return value

TBool

ETrue if the specified status code is in the 2xx Successful range


IsRedirection()

inline static TBool IsRedirection(TInt aStatus);

Description

Tests if the specified status code is in the 3xx Redirection range.

Parameters

TInt aStatus

Status code

Return value

TBool

ETrue if the specified status code is in the 3xx Redirection range


IsClientError()

inline static TBool IsClientError(TInt aStatus);

Description

Tests if the specified status code is in the 4xx Client Error range.

Parameters

TInt aStatus

Status code

Return value

TBool

ETrue if the specified status code is in the 4xx Client Error range


IsServerError()

inline static TBool IsServerError(TInt aStatus);

Description

Tests if the specified status code is in the 5xx Server Error range.

Parameters

TInt aStatus

Status code

Return value

TBool

ETrue if the specified status code is in the 5xx Server Error range