bref
API 2014 of the Zia HTTP server.
|
00001 00011 #ifndef BREF_API_HTTPCONSTANTS_H 00012 #define BREF_API_HTTPCONSTANTS_H 00013 00014 namespace bref { 00015 00020 namespace request_methods { 00021 00025 enum Type { 00026 UndefinedRequestMethod = 0, 00027 Options, 00028 Get, 00029 Head, 00030 Post, 00031 Put, 00032 Delete, 00033 Trace, 00034 Connect 00035 }; 00036 } // ! request_methods 00037 00042 namespace status_codes { 00043 00047 enum Type { 00048 // 0 : Default value 00049 UndefinedStatusCode = 0, 00050 00051 // 1xx: Informational 00052 Continue = 100, 00053 SwitchingProtocols = 101, 00054 00055 // 2xx: Success 00056 OK = 200, 00057 Created = 201, 00058 Accepted = 202, 00059 NonAuthoritativeInformation = 203, 00060 NoContent = 204, 00061 ResetContent = 205, 00062 PartialContent = 206, 00063 00064 // 3xx: Redirection 00065 MultipleChoices = 300, 00066 MovedPermanently = 301, 00067 Found = 302, 00068 SeeOther = 303, 00069 NotModified = 304, 00070 UseProxy = 305, 00071 TemporaryRedirect = 307, 00072 00073 // 4xx: Client Error 00074 BadRequest = 400, 00075 Unauthorized = 401, 00076 PaymentRequired = 402, 00077 Forbidden = 403, 00078 NotFound = 404, 00079 MethodNotAllowed = 405, 00080 NotAcceptable = 406, 00081 ProxyAuthenticationRequired = 407, 00082 RequestTimeOut = 408, 00083 Conflict = 409, 00084 Gone = 410, 00085 LengthRequired = 411, 00086 PreconditionFailed = 412, 00087 RequestEntityTooLarge = 413, 00088 RequestURITooLarge = 414, 00089 UnsupportedMediaType = 415, 00090 RequestedRangeNotSatisfiable = 416, 00091 ExpectationFailed = 417, 00092 00093 // 5xx: Server Error 00094 InternalServerError = 500, 00095 NotImplemented = 501, 00096 BadGateway = 502, 00097 ServiceUnavailable = 503, 00098 GatewayTimeOut = 504, 00099 HTTPVersionNotSupported = 505 00100 }; 00101 00105 enum Category { 00106 UndefinedCategory = 0, 00107 Informational = 100, 00108 Success = 200, 00109 Redirection = 300, 00110 ClientError = 400, 00111 ServerError = 500 00112 }; 00113 00114 } // ! status_codes 00115 00116 } // ! bref 00117 00118 #endif // ! BREF_API_HTTPCONSTANTS_H