Mercurial > hg > orthanc
comparison PalantirCppClient/HttpEnumerations.h @ 0:3959d33612cc
initial commit
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 19 Jul 2012 14:32:22 +0200 |
parents | |
children | 9be852ad33d2 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3959d33612cc |
---|---|
1 /** | |
2 * Palantir - A Lightweight, RESTful DICOM Store | |
3 * Copyright (C) 2012 Medical Physics Department, CHU of Liege, | |
4 * Belgium | |
5 * | |
6 * Permission is hereby granted, free of charge, to any person | |
7 * obtaining a copy of this software and associated documentation | |
8 * files (the "Software"), to deal in the Software without | |
9 * restriction, including without limitation the rights to use, copy, | |
10 * modify, merge, publish, distribute, sublicense, and/or sell copies | |
11 * of the Software, and to permit persons to whom the Software is | |
12 * furnished to do so, subject to the following conditions: | |
13 * | |
14 * The above copyright notice and this permission notice shall be | |
15 * included in all copies or substantial portions of the Software. | |
16 * | |
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
18 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
19 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
20 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS | |
21 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN | |
22 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | |
23 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
24 * SOFTWARE. | |
25 **/ | |
26 | |
27 | |
28 #pragma once | |
29 | |
30 namespace Palantir | |
31 { | |
32 // Most common, non-joke and non-experimental HTTP status codes | |
33 // http://en.wikipedia.org/wiki/List_of_HTTP_status_codes | |
34 enum HttpStatus | |
35 { | |
36 HttpStatus_None = -1, | |
37 | |
38 // 1xx Informational | |
39 HttpStatus_100_Continue = 100, | |
40 HttpStatus_101_SwitchingProtocols = 101, | |
41 HttpStatus_102_Processing = 102, | |
42 | |
43 // 2xx Success | |
44 HttpStatus_200_Ok = 200, | |
45 HttpStatus_201_Created = 201, | |
46 HttpStatus_202_Accepted = 202, | |
47 HttpStatus_203_NonAuthoritativeInformation = 203, | |
48 HttpStatus_204_NoContent = 204, | |
49 HttpStatus_205_ResetContent = 205, | |
50 HttpStatus_206_PartialContent = 206, | |
51 HttpStatus_207_MultiStatus = 207, | |
52 HttpStatus_208_AlreadyReported = 208, | |
53 HttpStatus_226_IMUsed = 226, | |
54 | |
55 // 3xx Redirection | |
56 HttpStatus_300_MultipleChoices = 300, | |
57 HttpStatus_301_MovedPermanently = 301, | |
58 HttpStatus_302_Found = 302, | |
59 HttpStatus_303_SeeOther = 303, | |
60 HttpStatus_304_NotModified = 304, | |
61 HttpStatus_305_UseProxy = 305, | |
62 HttpStatus_307_TemporaryRedirect = 307, | |
63 | |
64 // 4xx Client Error | |
65 HttpStatus_400_BadRequest = 400, | |
66 HttpStatus_401_Unauthorized = 401, | |
67 HttpStatus_402_PaymentRequired = 402, | |
68 HttpStatus_403_Forbidden = 403, | |
69 HttpStatus_404_NotFound = 404, | |
70 HttpStatus_405_MethodNotAllowed = 405, | |
71 HttpStatus_406_NotAcceptable = 406, | |
72 HttpStatus_407_ProxyAuthenticationRequired = 407, | |
73 HttpStatus_408_RequestTimeout = 408, | |
74 HttpStatus_409_Conflict = 409, | |
75 HttpStatus_410_Gone = 410, | |
76 HttpStatus_411_LengthRequired = 411, | |
77 HttpStatus_412_PreconditionFailed = 412, | |
78 HttpStatus_413_RequestEntityTooLarge = 413, | |
79 HttpStatus_414_RequestUriTooLong = 414, | |
80 HttpStatus_415_UnsupportedMediaType = 415, | |
81 HttpStatus_416_RequestedRangeNotSatisfiable = 416, | |
82 HttpStatus_417_ExpectationFailed = 417, | |
83 HttpStatus_422_UnprocessableEntity = 422, | |
84 HttpStatus_423_Locked = 423, | |
85 HttpStatus_424_FailedDependency = 424, | |
86 HttpStatus_426_UpgradeRequired = 426, | |
87 | |
88 // 5xx Server Error | |
89 HttpStatus_500_InternalServerError = 500, | |
90 HttpStatus_501_NotImplemented = 501, | |
91 HttpStatus_502_BadGateway = 502, | |
92 HttpStatus_503_ServiceUnavailable = 503, | |
93 HttpStatus_504_GatewayTimeout = 504, | |
94 HttpStatus_505_HttpVersionNotSupported = 505, | |
95 HttpStatus_506_VariantAlsoNegotiates = 506, | |
96 HttpStatus_507_InsufficientStorage = 507, | |
97 HttpStatus_509_BandwidthLimitExceeded = 509, | |
98 HttpStatus_510_NotExtended = 510 | |
99 }; | |
100 | |
101 | |
102 enum HttpMethod | |
103 { | |
104 HttpMethod_Get, | |
105 HttpMethod_Post, | |
106 HttpMethod_Delete, | |
107 HttpMethod_Put | |
108 }; | |
109 } |