Mercurial > hg > orthanc
comparison Resources/ErrorCodes.json @ 1582:bd1889029cbb
encoding of exceptions
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 25 Aug 2015 17:39:38 +0200 |
parents | 357c4bb15701 |
children | 9ea3d082b064 |
comparison
equal
deleted
inserted
replaced
1581:357c4bb15701 | 1582:bd1889029cbb |
---|---|
1 [ | 1 [ |
2 { | 2 /** Generic error codes **/ |
3 "Code": -2, | 3 |
4 "Name": "Custom", | 4 { |
5 "Description": "Custom error, see the attached error message" | 5 "Code": -2, |
6 }, | 6 "Name": "Custom", |
7 { | 7 "Description": "Custom error, see the attached error message" |
8 "Code": -1, | 8 }, |
9 "Name": "InternalError", | 9 { |
10 "Description": "Internal error" | 10 "Code": -1, |
11 }, | 11 "Name": "InternalError", |
12 { | 12 "Description": "Internal error" |
13 "Code": 0, | 13 }, |
14 "HttpStatus": 200, | 14 { |
15 "Name": "Success", | 15 "Code": 0, |
16 "Description": "Success" | 16 "HttpStatus": 200, |
17 }, | 17 "Name": "Success", |
18 { | 18 "Description": "Success" |
19 "Code": 1, | 19 }, |
20 "Name": "Plugin", | 20 { |
21 "Description": "Error encountered within the plugin engine" | 21 "Code": 1, |
22 }, | 22 "Name": "Plugin", |
23 { | 23 "Description": "Error encountered within the plugin engine" |
24 "Code": 2, | 24 }, |
25 "Name": "NotImplemented", | 25 { |
26 "Description": "Not implemented yet" | 26 "Code": 2, |
27 }, | 27 "Name": "NotImplemented", |
28 { | 28 "Description": "Not implemented yet" |
29 "Code": 3, | 29 }, |
30 "HttpStatus": 400, | 30 { |
31 "Name": "ParameterOutOfRange", | 31 "Code": 3, |
32 "Description": "Parameter out of range" | 32 "HttpStatus": 400, |
33 }, | 33 "Name": "ParameterOutOfRange", |
34 { | 34 "Description": "Parameter out of range", |
35 "Code": 4, | 35 "SQLite": true |
36 "Name": "NotEnoughMemory", | 36 }, |
37 "Description": "Not enough memory" | 37 { |
38 }, | 38 "Code": 4, |
39 { | 39 "Name": "NotEnoughMemory", |
40 "Code": 5, | 40 "Description": "Not enough memory" |
41 "HttpStatus": 400, | 41 }, |
42 "Name": "BadParameterType", | 42 { |
43 "Description": "Bad type for a parameter" | 43 "Code": 5, |
44 }, | 44 "HttpStatus": 400, |
45 { | 45 "Name": "BadParameterType", |
46 "Code": 6, | 46 "Description": "Bad type for a parameter", |
47 "Name": "BadSequenceOfCalls", | 47 "SQLite": true |
48 "Description": "Bad sequence of calls" | 48 }, |
49 }, | 49 { |
50 { | 50 "Code": 6, |
51 "Code": 7, | 51 "Name": "BadSequenceOfCalls", |
52 "HttpStatus": 404, | 52 "Description": "Bad sequence of calls" |
53 "Name": "InexistentItem", | 53 }, |
54 "Description": "Accessing an inexistent item" | 54 { |
55 }, | 55 "Code": 7, |
56 { | 56 "HttpStatus": 404, |
57 "Code": 8, | 57 "Name": "InexistentItem", |
58 "HttpStatus": 400, | 58 "Description": "Accessing an inexistent item" |
59 "Name": "BadRequest", | 59 }, |
60 "Description": "Bad request" | 60 { |
61 }, | 61 "Code": 8, |
62 { | 62 "HttpStatus": 400, |
63 "Code": 9, | 63 "Name": "BadRequest", |
64 "Name": "NetworkProtocol", | 64 "Description": "Bad request" |
65 "Description": "Error in the network protocol" | 65 }, |
66 }, | 66 { |
67 { | 67 "Code": 9, |
68 "Code": 10, | 68 "Name": "NetworkProtocol", |
69 "Name": "SystemCommand", | 69 "Description": "Error in the network protocol" |
70 "Description": "Error while calling a system command" | 70 }, |
71 }, | 71 { |
72 { | 72 "Code": 10, |
73 "Code": 11, | 73 "Name": "SystemCommand", |
74 "Name": "Database", | 74 "Description": "Error while calling a system command" |
75 "Description": "Error with the database engine" | 75 }, |
76 }, | 76 { |
77 { | 77 "Code": 11, |
78 "Code": 12, | 78 "Name": "Database", |
79 "HttpStatus": 400, | 79 "Description": "Error with the database engine" |
80 "Name": "UriSyntax", | 80 }, |
81 "Description": "Badly formatted URI" | 81 { |
82 }, | 82 "Code": 12, |
83 { | 83 "HttpStatus": 400, |
84 "Code": 13, | 84 "Name": "UriSyntax", |
85 "HttpStatus": 404, | 85 "Description": "Badly formatted URI" |
86 "Name": "InexistentFile", | 86 }, |
87 "Description": "Inexistent file" | 87 { |
88 }, | 88 "Code": 13, |
89 { | 89 "HttpStatus": 404, |
90 "Code": 14, | 90 "Name": "InexistentFile", |
91 "Name": "CannotWriteFile", | 91 "Description": "Inexistent file" |
92 "Description": "Cannot write to file" | 92 }, |
93 }, | 93 { |
94 { | 94 "Code": 14, |
95 "Code": 15, | 95 "Name": "CannotWriteFile", |
96 "HttpStatus": 400, | 96 "Description": "Cannot write to file" |
97 "Name": "BadFileFormat", | 97 }, |
98 "Description": "Bad file format" | 98 { |
99 }, | 99 "Code": 15, |
100 { | 100 "HttpStatus": 400, |
101 "Code": 16, | 101 "Name": "BadFileFormat", |
102 "Name": "Timeout", | 102 "Description": "Bad file format" |
103 "Description": "Timeout" | 103 }, |
104 }, | 104 { |
105 { | 105 "Code": 16, |
106 "Code": 17, | 106 "Name": "Timeout", |
107 "HttpStatus": 404, | 107 "Description": "Timeout" |
108 "Name": "UnknownResource", | 108 }, |
109 "Description": "Unknown resource" | 109 { |
110 }, | 110 "Code": 17, |
111 { | 111 "HttpStatus": 404, |
112 "Code": 18, | 112 "Name": "UnknownResource", |
113 "Name": "IncompatibleDatabaseVersion", | 113 "Description": "Unknown resource" |
114 "Description": "Incompatible version of the database" | 114 }, |
115 }, | 115 { |
116 { | 116 "Code": 18, |
117 "Code": 19, | 117 "Name": "IncompatibleDatabaseVersion", |
118 "Name": "FullStorage", | 118 "Description": "Incompatible version of the database" |
119 "Description": "The file storage is full" | 119 }, |
120 }, | 120 { |
121 { | 121 "Code": 19, |
122 "Code": 20, | 122 "Name": "FullStorage", |
123 "Name": "CorruptedFile", | 123 "Description": "The file storage is full" |
124 "Description": "Corrupted file (e.g. inconsistent MD5 hash)" | 124 }, |
125 }, | 125 { |
126 { | 126 "Code": 20, |
127 "Code": 21, | 127 "Name": "CorruptedFile", |
128 "HttpStatus": 404, | 128 "Description": "Corrupted file (e.g. inconsistent MD5 hash)" |
129 "Name": "InexistentTag", | 129 }, |
130 "Description": "Inexistent tag" | 130 { |
131 }, | 131 "Code": 21, |
132 { | 132 "HttpStatus": 404, |
133 "Code": 22, | 133 "Name": "InexistentTag", |
134 "Name": "ReadOnly", | 134 "Description": "Inexistent tag" |
135 "Description": "Cannot modify a read-only data structure" | 135 }, |
136 }, | 136 { |
137 { | 137 "Code": 22, |
138 "Code": 23, | 138 "Name": "ReadOnly", |
139 "Name": "IncompatibleImageFormat", | 139 "Description": "Cannot modify a read-only data structure" |
140 "Description": "Incompatible format of the images" | 140 }, |
141 }, | 141 { |
142 { | 142 "Code": 23, |
143 "Code": 24, | 143 "Name": "IncompatibleImageFormat", |
144 "Name": "IncompatibleImageSize", | 144 "Description": "Incompatible format of the images" |
145 "Description": "Incompatible size of the images" | 145 }, |
146 }, | 146 { |
147 { | 147 "Code": 24, |
148 "Code": 25, | 148 "Name": "IncompatibleImageSize", |
149 "Name": "SharedLibrary", | 149 "Description": "Incompatible size of the images" |
150 "Description": "Error while using a shared library (plugin)" | 150 }, |
151 }, | 151 { |
152 { | 152 "Code": 25, |
153 "Code": 26, | 153 "Name": "SharedLibrary", |
154 "Name": "UnknownPluginService", | 154 "Description": "Error while using a shared library (plugin)" |
155 "Description": "Plugin invoking an unknown service" | 155 }, |
156 } | 156 { |
157 "Code": 26, | |
158 "Name": "UnknownPluginService", | |
159 "Description": "Plugin invoking an unknown service" | |
160 }, | |
161 { | |
162 "Code": 27, | |
163 "Name": "UnknownDicomTag", | |
164 "Description": "Unknown DICOM tag" | |
165 }, | |
166 | |
167 | |
168 | |
169 | |
170 | |
171 | |
172 /** SQLite **/ | |
173 | |
174 | |
175 { | |
176 "Code": 1000, | |
177 "Name": "SQLiteNotOpened", | |
178 "Description": "SQLite: The database is not opened", | |
179 "SQLite": true | |
180 }, | |
181 { | |
182 "Code": 1001, | |
183 "Name": "SQLiteAlreadyOpened", | |
184 "Description": "SQLite: Connection is already open", | |
185 "SQLite": true | |
186 }, | |
187 { | |
188 "Code": 1002, | |
189 "Name": "SQLiteCannotOpen", | |
190 "Description": "SQLite: Unable to open the database", | |
191 "SQLite": true | |
192 }, | |
193 { | |
194 "Code": 1003, | |
195 "Name": "SQLiteStatementAlreadyUsed", | |
196 "Description": "SQLite: This cached statement is already being referred to", | |
197 "SQLite": true | |
198 }, | |
199 { | |
200 "Code": 1004, | |
201 "Name": "SQLiteExecute", | |
202 "Description": "SQLite: Cannot execute a command", | |
203 "SQLite": true | |
204 }, | |
205 { | |
206 "Code": 1005, | |
207 "Name": "SQLiteRollbackWithoutTransaction", | |
208 "Description": "SQLite: Rolling back a nonexistent transaction (have you called Begin()?)", | |
209 "SQLite": true | |
210 }, | |
211 { | |
212 "Code": 1006, | |
213 "Name": "SQLiteCommitWithoutTransaction", | |
214 "Description": "SQLite: Committing a nonexistent transaction", | |
215 "SQLite": true | |
216 }, | |
217 { | |
218 "Code": 1007, | |
219 "Name": "SQLiteRegisterFunction", | |
220 "Description": "SQLite: Unable to register a function", | |
221 "SQLite": true | |
222 }, | |
223 { | |
224 "Code": 1008, | |
225 "Name": "SQLiteFlush", | |
226 "Description": "SQLite: Unable to flush the database", | |
227 "SQLite": true | |
228 }, | |
229 { | |
230 "Code": 1009, | |
231 "Name": "SQLiteCannotRun", | |
232 "Description": "SQLite: Cannot run a cached statement", | |
233 "SQLite": true | |
234 }, | |
235 { | |
236 "Code": 1010, | |
237 "Name": "SQLiteCannotStep", | |
238 "Description": "SQLite: Cannot step over a cached statement", | |
239 "SQLite": true | |
240 }, | |
241 { | |
242 "Code": 1011, | |
243 "Name": "SQLiteBindOutOfRange", | |
244 "Description": "SQLite: Bing a value while out of range (serious error)", | |
245 "SQLite": true | |
246 }, | |
247 { | |
248 "Code": 1012, | |
249 "Name": "SQLitePrepareStatement", | |
250 "Description": "SQLite: Cannot prepare a cached statement", | |
251 "SQLite": true | |
252 }, | |
253 { | |
254 "Code": 1013, | |
255 "Name": "SQLiteTransactionAlreadyStarted", | |
256 "Description": "SQLite: Beginning the same transaction twice", | |
257 "SQLite": true | |
258 }, | |
259 { | |
260 "Code": 1014, | |
261 "Name": "SQLiteTransactionCommit", | |
262 "Description": "SQLite: Failure when committing the transaction", | |
263 "SQLite": true | |
264 }, | |
265 { | |
266 "Code": 1015, | |
267 "Name": "SQLiteTransactionBegin", | |
268 "Description": "SQLite: Cannot start a transaction", | |
269 "SQLite": true | |
270 }, | |
271 | |
272 | |
273 | |
274 | |
275 | |
276 | |
277 | |
278 | |
279 /** Specific error codes **/ | |
280 | |
281 | |
282 { | |
283 "Code": 2000, | |
284 "Name": "DirectoryOverFile", | |
285 "Description": "The directory to be created is already occupied by a regular file" | |
286 }, | |
287 { | |
288 "Code": 2001, | |
289 "Name": "FileStorageCannotWrite", | |
290 "Description": "Unable to create a subdirectory or a file in the file storage" | |
291 }, | |
292 { | |
293 "Code": 2002, | |
294 "Name": "DirectoryExpected", | |
295 "Description": "The specified path does not point to a directory" | |
296 }, | |
297 { | |
298 "Code": 2003, | |
299 "Name": "HttpPortInUse", | |
300 "Description": "The TCP port of the HTTP server is already in use" | |
301 }, | |
302 { | |
303 "Code": 2004, | |
304 "Name": "DicomPortInUse", | |
305 "Description": "The TCP port of the DICOM server is already in use" | |
306 }, | |
307 { | |
308 "Code": 2005, | |
309 "Name": "BadHttpStatusInRest", | |
310 "Description": "This HTTP status is not allowed in a REST API" | |
311 }, | |
312 { | |
313 "Code": 2006, | |
314 "Name": "RegularFileExpected", | |
315 "Description": "The specified path does not point to a regular file" | |
316 }, | |
317 { | |
318 "Code": 2007, | |
319 "Name": "PathToExecutable", | |
320 "Description": "Unable to get the path to the executable" | |
321 }, | |
322 { | |
323 "Code": 2008, | |
324 "Name": "MakeDirectory", | |
325 "Description": "Cannot create a directory" | |
326 }, | |
327 { | |
328 "Code": 2009, | |
329 "Name": "BadApplicationEntityTitle", | |
330 "Description": "An application entity title (AET) cannot be empty or be longer than 16 characters" | |
331 }, | |
332 { | |
333 "Code": 2010, | |
334 "Name": "NoCFindHandler", | |
335 "Description": "No request handler factory for DICOM C-FIND SCP" | |
336 }, | |
337 { | |
338 "Code": 2011, | |
339 "Name": "NoCMoveHandler", | |
340 "Description": "No request handler factory for DICOM C-MOVE SCP" | |
341 }, | |
342 { | |
343 "Code": 2012, | |
344 "Name": "NoCStoreHandler", | |
345 "Description": "No request handler factory for DICOM C-STORE SCP" | |
346 }, | |
347 { | |
348 "Code": 2013, | |
349 "Name": "NoApplicationEntityFilter", | |
350 "Description": "No application entity filter" | |
351 }, | |
352 { | |
353 "Code": 2014, | |
354 "Name": "NoSopClassOrInstance", | |
355 "Description": "DicomUserConnection: Unable to find the SOP class and instance" | |
356 }, | |
357 { | |
358 "Code": 2015, | |
359 "Name": "NoPresentationContext", | |
360 "Description": "DicomUserConnection: No acceptable presentation context for modality" | |
361 }, | |
362 { | |
363 "Code": 2016, | |
364 "Name": "DicomFindUnavailable", | |
365 "Description": "DicomUserConnection: The C-FIND command is not supported by the remote SCP" | |
366 }, | |
367 { | |
368 "Code": 2017, | |
369 "Name": "DicomMoveUnavailable", | |
370 "Description": "DicomUserConnection: The C-MOVE command is not supported by the remote SCP" | |
371 }, | |
372 { | |
373 "Code": 2018, | |
374 "Name": "CannotStoreInstance", | |
375 "Description": "Cannot store an instance" | |
376 }, | |
377 { | |
378 "Code": 2019, | |
379 "Name": "CreateDicomNotString", | |
380 "Description": "Only string values are supported when creating DICOM instances" | |
381 }, | |
382 { | |
383 "Code": 2020, | |
384 "Name": "CreateDicomOverrideTag", | |
385 "Description": "Trying to override a value inherited from a parent module" | |
386 }, | |
387 { | |
388 "Code": 2021, | |
389 "Name": "CreateDicomUseContent", | |
390 "Description": "Use \\\"Content\\\" to inject an image into a new DICOM instance" | |
391 }, | |
392 { | |
393 "Code": 2022, | |
394 "Name": "CreateDicomNoPayload", | |
395 "Description": "No payload is present for one instance in the series" | |
396 }, | |
397 { | |
398 "Code": 2023, | |
399 "Name": "CreateDicomUseDataUriScheme", | |
400 "Description": "The payload of the DICOM instance must be specified according to Data URI scheme" | |
401 }, | |
402 { | |
403 "Code": 2024, | |
404 "Name": "CreateDicomBadParent", | |
405 "Description": "Trying to attach a new DICOM instance to an inexistent resource" | |
406 }, | |
407 { | |
408 "Code": 2025, | |
409 "Name": "CreateDicomParentIsInstance", | |
410 "Description": "Trying to attach a new DICOM instance to an instance (must be a series, study or patient)" | |
411 }, | |
412 { | |
413 "Code": 2026, | |
414 "Name": "CreateDicomParentEncoding", | |
415 "Description": "Unable to get the encoding of the parent resource" | |
416 }, | |
417 { | |
418 "Code": 2027, | |
419 "Name": "UnknownModality", | |
420 "Description": "Unknown modality" | |
421 }, | |
422 { | |
423 "Code": 2028, | |
424 "Name": "BadJobOrdering", | |
425 "Description": "Bad ordering of filters in a job" | |
426 } | |
157 ] | 427 ] |