comparison Resources/ErrorCodes.json @ 1576:de54c19fc44d

refactoring OrthancException
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 25 Aug 2015 14:48:06 +0200
parents
children b93c398f934d
comparison
equal deleted inserted replaced
1575:f8aae45011c9 1576:de54c19fc44d
1 [
2 {
3 "Code": -1,
4 "Name": "Custom",
5 "Description": "Custom error, see the attached error message"
6 },
7 {
8 "Code": 0,
9 "HttpStatus": 200,
10 "Name": "Success",
11 "Description": "Success"
12 },
13 {
14 "Code": 1,
15 "Name": "InternalError",
16 "Description": "Internal error"
17 },
18 {
19 "Code": 2,
20 "Name": "NotImplemented",
21 "Description": "Not implemented yet"
22 },
23 {
24 "Code": 3,
25 "HttpStatus": 400,
26 "Name": "ParameterOutOfRange",
27 "Description": "Parameter out of range"
28 },
29 {
30 "Code": 4,
31 "Name": "NotEnoughMemory",
32 "Description": "Not enough memory"
33 },
34 {
35 "Code": 5,
36 "HttpStatus": 400,
37 "Name": "BadParameterType",
38 "Description": "Bad type for a parameter"
39 },
40 {
41 "Code": 6,
42 "Name": "BadSequenceOfCalls",
43 "Description": "Bad sequence of calls"
44 },
45 {
46 "Code": 7,
47 "HttpStatus": 404,
48 "Name": "InexistentItem",
49 "Description": "Accessing an inexistent item"
50 },
51 {
52 "Code": 8,
53 "HttpStatus": 400,
54 "Name": "BadRequest",
55 "Description": "Bad request"
56 },
57 {
58 "Code": 9,
59 "Name": "NetworkProtocol",
60 "Description": "Error in the network protocol"
61 },
62 {
63 "Code": 10,
64 "Name": "SystemCommand",
65 "Description": "Error while calling a system command"
66 },
67 {
68 "Code": 11,
69 "Name": "Database",
70 "Description": "Error with the database engine"
71 },
72 {
73 "Code": 12,
74 "HttpStatus": 400,
75 "Name": "UriSyntax",
76 "Description": "Badly formatted URI"
77 },
78 {
79 "Code": 13,
80 "HttpStatus": 404,
81 "Name": "InexistentFile",
82 "Description": "Inexistent file"
83 },
84 {
85 "Code": 14,
86 "Name": "CannotWriteFile",
87 "Description": "Cannot write to file"
88 },
89 {
90 "Code": 15,
91 "HttpStatus": 400,
92 "Name": "BadFileFormat",
93 "Description": "Bad file format"
94 },
95 {
96 "Code": 16,
97 "Name": "Timeout",
98 "Description": "Timeout"
99 },
100 {
101 "Code": 17,
102 "HttpStatus": 404,
103 "Name": "UnknownResource",
104 "Description": "Unknown resource"
105 },
106 {
107 "Code": 18,
108 "Name": "IncompatibleDatabaseVersion",
109 "Description": "Incompatible version of the database"
110 },
111 {
112 "Code": 19,
113 "Name": "FullStorage",
114 "Description": "The file storage is full"
115 },
116 {
117 "Code": 20,
118 "Name": "CorruptedFile",
119 "Description": "Corrupted file (inconsistent MD5 hash)"
120 },
121 {
122 "Code": 21,
123 "HttpStatus": 404,
124 "Name": "InexistentTag",
125 "Description": "Inexistent tag"
126 },
127 {
128 "Code": 22,
129 "Name": "ReadOnly",
130 "Description": "Cannot modify a read-only data structure"
131 },
132 {
133 "Code": 23,
134 "Name": "IncompatibleImageFormat",
135 "Description": "Incompatible format of the images"
136 },
137 {
138 "Code": 24,
139 "Name": "IncompatibleImageSize",
140 "Description": "Incompatible size of the images"
141 },
142 {
143 "Code": 25,
144 "Name": "SharedLibrary",
145 "Description": "Error while using a shared library (plugin)"
146 },
147 {
148 "Code": 26,
149 "Name": "Plugin",
150 "Description": "Error encountered inside a plugin"
151 }
152 ]