comparison 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
comparison
equal deleted inserted replaced
56:088c4f23e2c8 57:4bc019d2f969
1 /**
2 * Palanthir - 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
31 /**
32 * This file contains the enumerations for the access to the Palanthir
33 * REST API in C and C++. Namespaces are not used, in order to enable
34 * the access in C.
35 **/
36
37 // Most common, non-joke and non-experimental HTTP status codes
38 // http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
39 enum Palanthir_HttpStatus
40 {
41 Palanthir_HttpStatus_None = -1,
42
43 // 1xx Informational
44 Palanthir_HttpStatus_100_Continue = 100,
45 Palanthir_HttpStatus_101_SwitchingProtocols = 101,
46 Palanthir_HttpStatus_102_Processing = 102,
47
48 // 2xx Success
49 Palanthir_HttpStatus_200_Ok = 200,
50 Palanthir_HttpStatus_201_Created = 201,
51 Palanthir_HttpStatus_202_Accepted = 202,
52 Palanthir_HttpStatus_203_NonAuthoritativeInformation = 203,
53 Palanthir_HttpStatus_204_NoContent = 204,
54 Palanthir_HttpStatus_205_ResetContent = 205,
55 Palanthir_HttpStatus_206_PartialContent = 206,
56 Palanthir_HttpStatus_207_MultiStatus = 207,
57 Palanthir_HttpStatus_208_AlreadyReported = 208,
58 Palanthir_HttpStatus_226_IMUsed = 226,
59
60 // 3xx Redirection
61 Palanthir_HttpStatus_300_MultipleChoices = 300,
62 Palanthir_HttpStatus_301_MovedPermanently = 301,
63 Palanthir_HttpStatus_302_Found = 302,
64 Palanthir_HttpStatus_303_SeeOther = 303,
65 Palanthir_HttpStatus_304_NotModified = 304,
66 Palanthir_HttpStatus_305_UseProxy = 305,
67 Palanthir_HttpStatus_307_TemporaryRedirect = 307,
68
69 // 4xx Client Error
70 Palanthir_HttpStatus_400_BadRequest = 400,
71 Palanthir_HttpStatus_401_Unauthorized = 401,
72 Palanthir_HttpStatus_402_PaymentRequired = 402,
73 Palanthir_HttpStatus_403_Forbidden = 403,
74 Palanthir_HttpStatus_404_NotFound = 404,
75 Palanthir_HttpStatus_405_MethodNotAllowed = 405,
76 Palanthir_HttpStatus_406_NotAcceptable = 406,
77 Palanthir_HttpStatus_407_ProxyAuthenticationRequired = 407,
78 Palanthir_HttpStatus_408_RequestTimeout = 408,
79 Palanthir_HttpStatus_409_Conflict = 409,
80 Palanthir_HttpStatus_410_Gone = 410,
81 Palanthir_HttpStatus_411_LengthRequired = 411,
82 Palanthir_HttpStatus_412_PreconditionFailed = 412,
83 Palanthir_HttpStatus_413_RequestEntityTooLarge = 413,
84 Palanthir_HttpStatus_414_RequestUriTooLong = 414,
85 Palanthir_HttpStatus_415_UnsupportedMediaType = 415,
86 Palanthir_HttpStatus_416_RequestedRangeNotSatisfiable = 416,
87 Palanthir_HttpStatus_417_ExpectationFailed = 417,
88 Palanthir_HttpStatus_422_UnprocessableEntity = 422,
89 Palanthir_HttpStatus_423_Locked = 423,
90 Palanthir_HttpStatus_424_FailedDependency = 424,
91 Palanthir_HttpStatus_426_UpgradeRequired = 426,
92
93 // 5xx Server Error
94 Palanthir_HttpStatus_500_InternalServerError = 500,
95 Palanthir_HttpStatus_501_NotImplemented = 501,
96 Palanthir_HttpStatus_502_BadGateway = 502,
97 Palanthir_HttpStatus_503_ServiceUnavailable = 503,
98 Palanthir_HttpStatus_504_GatewayTimeout = 504,
99 Palanthir_HttpStatus_505_HttpVersionNotSupported = 505,
100 Palanthir_HttpStatus_506_VariantAlsoNegotiates = 506,
101 Palanthir_HttpStatus_507_InsufficientStorage = 507,
102 Palanthir_HttpStatus_509_BandwidthLimitExceeded = 509,
103 Palanthir_HttpStatus_510_NotExtended = 510
104 };
105
106
107 enum Palanthir_HttpMethod
108 {
109 Palanthir_HttpMethod_Get = 0,
110 Palanthir_HttpMethod_Post = 1,
111 Palanthir_HttpMethod_Delete = 2,
112 Palanthir_HttpMethod_Put = 3
113 };