Mercurial > hg > orthanc
comparison Core/Enumerations.h @ 473:c9a5d72f8481
changing the namespace of HTTP enumerations
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 15 Jul 2013 17:22:13 +0200 |
parents | 722b56b99093 |
children | 6f8ae46ed90e |
comparison
equal
deleted
inserted
replaced
472:722b56b99093 | 473:c9a5d72f8481 |
---|---|
29 * along with this program. If not, see <http://www.gnu.org/licenses/>. | 29 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
30 **/ | 30 **/ |
31 | 31 |
32 | 32 |
33 #pragma once | 33 #pragma once |
34 | |
35 #include "../OrthancCppClient/HttpEnumerations.h" | |
36 | 34 |
37 namespace Orthanc | 35 namespace Orthanc |
38 { | 36 { |
39 enum Endianness | 37 enum Endianness |
40 { | 38 { |
85 ImageExtractionMode_Int16 | 83 ImageExtractionMode_Int16 |
86 }; | 84 }; |
87 | 85 |
88 | 86 |
89 /** | 87 /** |
88 * Most common, non-joke and non-experimental HTTP status codes | |
89 * http://en.wikipedia.org/wiki/List_of_HTTP_status_codes | |
90 **/ | |
91 enum HttpStatus | |
92 { | |
93 HttpStatus_None = -1, | |
94 | |
95 // 1xx Informational | |
96 HttpStatus_100_Continue = 100, | |
97 HttpStatus_101_SwitchingProtocols = 101, | |
98 HttpStatus_102_Processing = 102, | |
99 | |
100 // 2xx Success | |
101 HttpStatus_200_Ok = 200, | |
102 HttpStatus_201_Created = 201, | |
103 HttpStatus_202_Accepted = 202, | |
104 HttpStatus_203_NonAuthoritativeInformation = 203, | |
105 HttpStatus_204_NoContent = 204, | |
106 HttpStatus_205_ResetContent = 205, | |
107 HttpStatus_206_PartialContent = 206, | |
108 HttpStatus_207_MultiStatus = 207, | |
109 HttpStatus_208_AlreadyReported = 208, | |
110 HttpStatus_226_IMUsed = 226, | |
111 | |
112 // 3xx Redirection | |
113 HttpStatus_300_MultipleChoices = 300, | |
114 HttpStatus_301_MovedPermanently = 301, | |
115 HttpStatus_302_Found = 302, | |
116 HttpStatus_303_SeeOther = 303, | |
117 HttpStatus_304_NotModified = 304, | |
118 HttpStatus_305_UseProxy = 305, | |
119 HttpStatus_307_TemporaryRedirect = 307, | |
120 | |
121 // 4xx Client Error | |
122 HttpStatus_400_BadRequest = 400, | |
123 HttpStatus_401_Unauthorized = 401, | |
124 HttpStatus_402_PaymentRequired = 402, | |
125 HttpStatus_403_Forbidden = 403, | |
126 HttpStatus_404_NotFound = 404, | |
127 HttpStatus_405_MethodNotAllowed = 405, | |
128 HttpStatus_406_NotAcceptable = 406, | |
129 HttpStatus_407_ProxyAuthenticationRequired = 407, | |
130 HttpStatus_408_RequestTimeout = 408, | |
131 HttpStatus_409_Conflict = 409, | |
132 HttpStatus_410_Gone = 410, | |
133 HttpStatus_411_LengthRequired = 411, | |
134 HttpStatus_412_PreconditionFailed = 412, | |
135 HttpStatus_413_RequestEntityTooLarge = 413, | |
136 HttpStatus_414_RequestUriTooLong = 414, | |
137 HttpStatus_415_UnsupportedMediaType = 415, | |
138 HttpStatus_416_RequestedRangeNotSatisfiable = 416, | |
139 HttpStatus_417_ExpectationFailed = 417, | |
140 HttpStatus_422_UnprocessableEntity = 422, | |
141 HttpStatus_423_Locked = 423, | |
142 HttpStatus_424_FailedDependency = 424, | |
143 HttpStatus_426_UpgradeRequired = 426, | |
144 | |
145 // 5xx Server Error | |
146 HttpStatus_500_InternalServerError = 500, | |
147 HttpStatus_501_NotImplemented = 501, | |
148 HttpStatus_502_BadGateway = 502, | |
149 HttpStatus_503_ServiceUnavailable = 503, | |
150 HttpStatus_504_GatewayTimeout = 504, | |
151 HttpStatus_505_HttpVersionNotSupported = 505, | |
152 HttpStatus_506_VariantAlsoNegotiates = 506, | |
153 HttpStatus_507_InsufficientStorage = 507, | |
154 HttpStatus_509_BandwidthLimitExceeded = 509, | |
155 HttpStatus_510_NotExtended = 510 | |
156 }; | |
157 | |
158 | |
159 enum HttpMethod | |
160 { | |
161 HttpMethod_Get = 0, | |
162 HttpMethod_Post = 1, | |
163 HttpMethod_Delete = 2, | |
164 HttpMethod_Put = 3 | |
165 }; | |
166 | |
167 | |
168 /** | |
90 * WARNING: Do not change the explicit values in the enumerations | 169 * WARNING: Do not change the explicit values in the enumerations |
91 * below this point. This would result in incompatible databases | 170 * below this point. This would result in incompatible databases |
92 * between versions of Orthanc! | 171 * between versions of Orthanc! |
93 **/ | 172 **/ |
94 | 173 |