annotate OrthancCppClient/HttpEnumerations.h @ 57:4bc019d2f969 orthanc-renaming

renaming
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sun, 16 Sep 2012 09:22:48 +0200
parents PalanthirCppClient/HttpEnumerations.h@a15e90e5d6fc
children 77aec9be0a51
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 /**
50
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
2 * Palanthir - A Lightweight, RESTful DICOM Store
0
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 * Copyright (C) 2012 Medical Physics Department, CHU of Liege,
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4 * Belgium
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
5 *
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
6 * Permission is hereby granted, free of charge, to any person
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7 * obtaining a copy of this software and associated documentation
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8 * files (the "Software"), to deal in the Software without
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9 * restriction, including without limitation the rights to use, copy,
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10 * modify, merge, publish, distribute, sublicense, and/or sell copies
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 * of the Software, and to permit persons to whom the Software is
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 * furnished to do so, subject to the following conditions:
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 *
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 * The above copyright notice and this permission notice shall be
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15 * included in all copies or substantial portions of the Software.
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16 *
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
18 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
21 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
23 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
24 * SOFTWARE.
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
25 **/
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
26
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
27
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
28 #pragma once
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
29
43
9be852ad33d2 rename for c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
30
9be852ad33d2 rename for c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
31 /**
50
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
32 * This file contains the enumerations for the access to the Palanthir
43
9be852ad33d2 rename for c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
33 * REST API in C and C++. Namespaces are not used, in order to enable
9be852ad33d2 rename for c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
34 * the access in C.
9be852ad33d2 rename for c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
35 **/
9be852ad33d2 rename for c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
36
9be852ad33d2 rename for c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
37 // Most common, non-joke and non-experimental HTTP status codes
9be852ad33d2 rename for c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
38 // http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
50
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
39 enum Palanthir_HttpStatus
0
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
40 {
50
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
41 Palanthir_HttpStatus_None = -1,
0
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
42
43
9be852ad33d2 rename for c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
43 // 1xx Informational
50
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
44 Palanthir_HttpStatus_100_Continue = 100,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
45 Palanthir_HttpStatus_101_SwitchingProtocols = 101,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
46 Palanthir_HttpStatus_102_Processing = 102,
0
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
47
43
9be852ad33d2 rename for c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
48 // 2xx Success
50
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
49 Palanthir_HttpStatus_200_Ok = 200,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
50 Palanthir_HttpStatus_201_Created = 201,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
51 Palanthir_HttpStatus_202_Accepted = 202,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
52 Palanthir_HttpStatus_203_NonAuthoritativeInformation = 203,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
53 Palanthir_HttpStatus_204_NoContent = 204,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
54 Palanthir_HttpStatus_205_ResetContent = 205,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
55 Palanthir_HttpStatus_206_PartialContent = 206,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
56 Palanthir_HttpStatus_207_MultiStatus = 207,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
57 Palanthir_HttpStatus_208_AlreadyReported = 208,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
58 Palanthir_HttpStatus_226_IMUsed = 226,
0
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
59
43
9be852ad33d2 rename for c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
60 // 3xx Redirection
50
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
61 Palanthir_HttpStatus_300_MultipleChoices = 300,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
62 Palanthir_HttpStatus_301_MovedPermanently = 301,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
63 Palanthir_HttpStatus_302_Found = 302,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
64 Palanthir_HttpStatus_303_SeeOther = 303,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
65 Palanthir_HttpStatus_304_NotModified = 304,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
66 Palanthir_HttpStatus_305_UseProxy = 305,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
67 Palanthir_HttpStatus_307_TemporaryRedirect = 307,
0
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
68
43
9be852ad33d2 rename for c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
69 // 4xx Client Error
50
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
70 Palanthir_HttpStatus_400_BadRequest = 400,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
71 Palanthir_HttpStatus_401_Unauthorized = 401,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
72 Palanthir_HttpStatus_402_PaymentRequired = 402,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
73 Palanthir_HttpStatus_403_Forbidden = 403,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
74 Palanthir_HttpStatus_404_NotFound = 404,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
75 Palanthir_HttpStatus_405_MethodNotAllowed = 405,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
76 Palanthir_HttpStatus_406_NotAcceptable = 406,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
77 Palanthir_HttpStatus_407_ProxyAuthenticationRequired = 407,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
78 Palanthir_HttpStatus_408_RequestTimeout = 408,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
79 Palanthir_HttpStatus_409_Conflict = 409,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
80 Palanthir_HttpStatus_410_Gone = 410,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
81 Palanthir_HttpStatus_411_LengthRequired = 411,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
82 Palanthir_HttpStatus_412_PreconditionFailed = 412,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
83 Palanthir_HttpStatus_413_RequestEntityTooLarge = 413,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
84 Palanthir_HttpStatus_414_RequestUriTooLong = 414,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
85 Palanthir_HttpStatus_415_UnsupportedMediaType = 415,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
86 Palanthir_HttpStatus_416_RequestedRangeNotSatisfiable = 416,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
87 Palanthir_HttpStatus_417_ExpectationFailed = 417,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
88 Palanthir_HttpStatus_422_UnprocessableEntity = 422,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
89 Palanthir_HttpStatus_423_Locked = 423,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
90 Palanthir_HttpStatus_424_FailedDependency = 424,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
91 Palanthir_HttpStatus_426_UpgradeRequired = 426,
43
9be852ad33d2 rename for c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
92
9be852ad33d2 rename for c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
93 // 5xx Server Error
50
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
94 Palanthir_HttpStatus_500_InternalServerError = 500,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
95 Palanthir_HttpStatus_501_NotImplemented = 501,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
96 Palanthir_HttpStatus_502_BadGateway = 502,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
97 Palanthir_HttpStatus_503_ServiceUnavailable = 503,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
98 Palanthir_HttpStatus_504_GatewayTimeout = 504,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
99 Palanthir_HttpStatus_505_HttpVersionNotSupported = 505,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
100 Palanthir_HttpStatus_506_VariantAlsoNegotiates = 506,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
101 Palanthir_HttpStatus_507_InsufficientStorage = 507,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
102 Palanthir_HttpStatus_509_BandwidthLimitExceeded = 509,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
103 Palanthir_HttpStatus_510_NotExtended = 510
43
9be852ad33d2 rename for c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
104 };
0
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
105
3959d33612cc initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
106
50
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
107 enum Palanthir_HttpMethod
43
9be852ad33d2 rename for c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
108 {
50
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
109 Palanthir_HttpMethod_Get = 0,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
110 Palanthir_HttpMethod_Post = 1,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
111 Palanthir_HttpMethod_Delete = 2,
a15e90e5d6fc rename in code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 45
diff changeset
112 Palanthir_HttpMethod_Put = 3
43
9be852ad33d2 rename for c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
113 };