// This enum is used in client API methods, do not re-number existing values.
enumEHTTPMethod
{
k_EHTTPMethodInvalid=0,
k_EHTTPMethodGET,
k_EHTTPMethodHEAD,
k_EHTTPMethodPOST,
k_EHTTPMethodPUT,
k_EHTTPMethodDELETE,
k_EHTTPMethodOPTIONS,
k_EHTTPMethodPATCH,
// The remaining HTTP methods are not yet supported, per rfc2616 section 5.1.1 only GET and HEAD are required for
// a compliant general purpose server. We'll likely add more as we find uses for them.
// k_EHTTPMethodTRACE,
// k_EHTTPMethodCONNECT
};
// HTTP Status codes that the server can send in response to a request, see rfc2616 section 10.3 for descriptions
// of each of these.
enumEHTTPStatusCode
{
// Invalid status code (this isn't defined in HTTP, used to indicate unset in our code)
k_EHTTPStatusCodeInvalid=0,
// Informational codes
k_EHTTPStatusCode100Continue=100,
k_EHTTPStatusCode101SwitchingProtocols=101,
// Success codes
k_EHTTPStatusCode200OK=200,
k_EHTTPStatusCode201Created=201,
k_EHTTPStatusCode202Accepted=202,
k_EHTTPStatusCode203NonAuthoritative=203,
k_EHTTPStatusCode204NoContent=204,
k_EHTTPStatusCode205ResetContent=205,
k_EHTTPStatusCode206PartialContent=206,
// Redirection codes
k_EHTTPStatusCode300MultipleChoices=300,
k_EHTTPStatusCode301MovedPermanently=301,
k_EHTTPStatusCode302Found=302,
k_EHTTPStatusCode303SeeOther=303,
k_EHTTPStatusCode304NotModified=304,
k_EHTTPStatusCode305UseProxy=305,
//k_EHTTPStatusCode306Unused = 306, (used in old HTTP spec, now unused in 1.1)
k_EHTTPStatusCode307TemporaryRedirect=307,
// Error codes
k_EHTTPStatusCode400BadRequest=400,
k_EHTTPStatusCode401Unauthorized=401,// You probably want 403 or something else. 401 implies you're sending a WWW-Authenticate header and the client can sent an Authorization header in response.
k_EHTTPStatusCode402PaymentRequired=402,// This is reserved for future HTTP specs, not really supported by clients