comparison OrthancCppClient/HttpEnumerations.h @ 60:77aec9be0a51 orthanc-renaming

renaming of cppclient
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sun, 16 Sep 2012 09:29:54 +0200
parents 4bc019d2f969
children e3a40c7846b8
comparison
equal deleted inserted replaced
59:c996319e90bc 60:77aec9be0a51
1 /** 1 /**
2 * Palanthir - A Lightweight, RESTful DICOM Store 2 * Orthanc - A Lightweight, RESTful DICOM Store
3 * Copyright (C) 2012 Medical Physics Department, CHU of Liege, 3 * Copyright (C) 2012 Medical Physics Department, CHU of Liege,
4 * Belgium 4 * Belgium
5 * 5 *
6 * Permission is hereby granted, free of charge, to any person 6 * Permission is hereby granted, free of charge, to any person
7 * obtaining a copy of this software and associated documentation 7 * obtaining a copy of this software and associated documentation
27 27
28 #pragma once 28 #pragma once
29 29
30 30
31 /** 31 /**
32 * This file contains the enumerations for the access to the Palanthir 32 * This file contains the enumerations for the access to the Orthanc
33 * REST API in C and C++. Namespaces are not used, in order to enable 33 * REST API in C and C++. Namespaces are not used, in order to enable
34 * the access in C. 34 * the access in C.
35 **/ 35 **/
36 36
37 // Most common, non-joke and non-experimental HTTP status codes 37 // Most common, non-joke and non-experimental HTTP status codes
38 // http://en.wikipedia.org/wiki/List_of_HTTP_status_codes 38 // http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
39 enum Palanthir_HttpStatus 39 enum Orthanc_HttpStatus
40 { 40 {
41 Palanthir_HttpStatus_None = -1, 41 Orthanc_HttpStatus_None = -1,
42 42
43 // 1xx Informational 43 // 1xx Informational
44 Palanthir_HttpStatus_100_Continue = 100, 44 Orthanc_HttpStatus_100_Continue = 100,
45 Palanthir_HttpStatus_101_SwitchingProtocols = 101, 45 Orthanc_HttpStatus_101_SwitchingProtocols = 101,
46 Palanthir_HttpStatus_102_Processing = 102, 46 Orthanc_HttpStatus_102_Processing = 102,
47 47
48 // 2xx Success 48 // 2xx Success
49 Palanthir_HttpStatus_200_Ok = 200, 49 Orthanc_HttpStatus_200_Ok = 200,
50 Palanthir_HttpStatus_201_Created = 201, 50 Orthanc_HttpStatus_201_Created = 201,
51 Palanthir_HttpStatus_202_Accepted = 202, 51 Orthanc_HttpStatus_202_Accepted = 202,
52 Palanthir_HttpStatus_203_NonAuthoritativeInformation = 203, 52 Orthanc_HttpStatus_203_NonAuthoritativeInformation = 203,
53 Palanthir_HttpStatus_204_NoContent = 204, 53 Orthanc_HttpStatus_204_NoContent = 204,
54 Palanthir_HttpStatus_205_ResetContent = 205, 54 Orthanc_HttpStatus_205_ResetContent = 205,
55 Palanthir_HttpStatus_206_PartialContent = 206, 55 Orthanc_HttpStatus_206_PartialContent = 206,
56 Palanthir_HttpStatus_207_MultiStatus = 207, 56 Orthanc_HttpStatus_207_MultiStatus = 207,
57 Palanthir_HttpStatus_208_AlreadyReported = 208, 57 Orthanc_HttpStatus_208_AlreadyReported = 208,
58 Palanthir_HttpStatus_226_IMUsed = 226, 58 Orthanc_HttpStatus_226_IMUsed = 226,
59 59
60 // 3xx Redirection 60 // 3xx Redirection
61 Palanthir_HttpStatus_300_MultipleChoices = 300, 61 Orthanc_HttpStatus_300_MultipleChoices = 300,
62 Palanthir_HttpStatus_301_MovedPermanently = 301, 62 Orthanc_HttpStatus_301_MovedPermanently = 301,
63 Palanthir_HttpStatus_302_Found = 302, 63 Orthanc_HttpStatus_302_Found = 302,
64 Palanthir_HttpStatus_303_SeeOther = 303, 64 Orthanc_HttpStatus_303_SeeOther = 303,
65 Palanthir_HttpStatus_304_NotModified = 304, 65 Orthanc_HttpStatus_304_NotModified = 304,
66 Palanthir_HttpStatus_305_UseProxy = 305, 66 Orthanc_HttpStatus_305_UseProxy = 305,
67 Palanthir_HttpStatus_307_TemporaryRedirect = 307, 67 Orthanc_HttpStatus_307_TemporaryRedirect = 307,
68 68
69 // 4xx Client Error 69 // 4xx Client Error
70 Palanthir_HttpStatus_400_BadRequest = 400, 70 Orthanc_HttpStatus_400_BadRequest = 400,
71 Palanthir_HttpStatus_401_Unauthorized = 401, 71 Orthanc_HttpStatus_401_Unauthorized = 401,
72 Palanthir_HttpStatus_402_PaymentRequired = 402, 72 Orthanc_HttpStatus_402_PaymentRequired = 402,
73 Palanthir_HttpStatus_403_Forbidden = 403, 73 Orthanc_HttpStatus_403_Forbidden = 403,
74 Palanthir_HttpStatus_404_NotFound = 404, 74 Orthanc_HttpStatus_404_NotFound = 404,
75 Palanthir_HttpStatus_405_MethodNotAllowed = 405, 75 Orthanc_HttpStatus_405_MethodNotAllowed = 405,
76 Palanthir_HttpStatus_406_NotAcceptable = 406, 76 Orthanc_HttpStatus_406_NotAcceptable = 406,
77 Palanthir_HttpStatus_407_ProxyAuthenticationRequired = 407, 77 Orthanc_HttpStatus_407_ProxyAuthenticationRequired = 407,
78 Palanthir_HttpStatus_408_RequestTimeout = 408, 78 Orthanc_HttpStatus_408_RequestTimeout = 408,
79 Palanthir_HttpStatus_409_Conflict = 409, 79 Orthanc_HttpStatus_409_Conflict = 409,
80 Palanthir_HttpStatus_410_Gone = 410, 80 Orthanc_HttpStatus_410_Gone = 410,
81 Palanthir_HttpStatus_411_LengthRequired = 411, 81 Orthanc_HttpStatus_411_LengthRequired = 411,
82 Palanthir_HttpStatus_412_PreconditionFailed = 412, 82 Orthanc_HttpStatus_412_PreconditionFailed = 412,
83 Palanthir_HttpStatus_413_RequestEntityTooLarge = 413, 83 Orthanc_HttpStatus_413_RequestEntityTooLarge = 413,
84 Palanthir_HttpStatus_414_RequestUriTooLong = 414, 84 Orthanc_HttpStatus_414_RequestUriTooLong = 414,
85 Palanthir_HttpStatus_415_UnsupportedMediaType = 415, 85 Orthanc_HttpStatus_415_UnsupportedMediaType = 415,
86 Palanthir_HttpStatus_416_RequestedRangeNotSatisfiable = 416, 86 Orthanc_HttpStatus_416_RequestedRangeNotSatisfiable = 416,
87 Palanthir_HttpStatus_417_ExpectationFailed = 417, 87 Orthanc_HttpStatus_417_ExpectationFailed = 417,
88 Palanthir_HttpStatus_422_UnprocessableEntity = 422, 88 Orthanc_HttpStatus_422_UnprocessableEntity = 422,
89 Palanthir_HttpStatus_423_Locked = 423, 89 Orthanc_HttpStatus_423_Locked = 423,
90 Palanthir_HttpStatus_424_FailedDependency = 424, 90 Orthanc_HttpStatus_424_FailedDependency = 424,
91 Palanthir_HttpStatus_426_UpgradeRequired = 426, 91 Orthanc_HttpStatus_426_UpgradeRequired = 426,
92 92
93 // 5xx Server Error 93 // 5xx Server Error
94 Palanthir_HttpStatus_500_InternalServerError = 500, 94 Orthanc_HttpStatus_500_InternalServerError = 500,
95 Palanthir_HttpStatus_501_NotImplemented = 501, 95 Orthanc_HttpStatus_501_NotImplemented = 501,
96 Palanthir_HttpStatus_502_BadGateway = 502, 96 Orthanc_HttpStatus_502_BadGateway = 502,
97 Palanthir_HttpStatus_503_ServiceUnavailable = 503, 97 Orthanc_HttpStatus_503_ServiceUnavailable = 503,
98 Palanthir_HttpStatus_504_GatewayTimeout = 504, 98 Orthanc_HttpStatus_504_GatewayTimeout = 504,
99 Palanthir_HttpStatus_505_HttpVersionNotSupported = 505, 99 Orthanc_HttpStatus_505_HttpVersionNotSupported = 505,
100 Palanthir_HttpStatus_506_VariantAlsoNegotiates = 506, 100 Orthanc_HttpStatus_506_VariantAlsoNegotiates = 506,
101 Palanthir_HttpStatus_507_InsufficientStorage = 507, 101 Orthanc_HttpStatus_507_InsufficientStorage = 507,
102 Palanthir_HttpStatus_509_BandwidthLimitExceeded = 509, 102 Orthanc_HttpStatus_509_BandwidthLimitExceeded = 509,
103 Palanthir_HttpStatus_510_NotExtended = 510 103 Orthanc_HttpStatus_510_NotExtended = 510
104 }; 104 };
105 105
106 106
107 enum Palanthir_HttpMethod 107 enum Orthanc_HttpMethod
108 { 108 {
109 Palanthir_HttpMethod_Get = 0, 109 Orthanc_HttpMethod_Get = 0,
110 Palanthir_HttpMethod_Post = 1, 110 Orthanc_HttpMethod_Post = 1,
111 Palanthir_HttpMethod_Delete = 2, 111 Orthanc_HttpMethod_Delete = 2,
112 Palanthir_HttpMethod_Put = 3 112 Orthanc_HttpMethod_Put = 3
113 }; 113 };