comparison OrthancFramework/Resources/CodeGeneration/ErrorCodes.json @ 4047:0327421506ad framework

fix paths in GenerateErrorCodes.py
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 11 Jun 2020 07:53:13 +0200
parents OrthancServer/Resources/ErrorCodes.json@d25f4c0fa160
children 3dffe8f7af48
comparison
equal deleted inserted replaced
4046:7ff1e6c80627 4047:0327421506ad
1 [
2 /** Generic error codes **/
3
4 {
5 "Code": -1,
6 "Name": "InternalError",
7 "Description": "Internal error"
8 },
9 {
10 "Code": 0,
11 "HttpStatus": 200,
12 "Name": "Success",
13 "Description": "Success"
14 },
15 {
16 "Code": 1,
17 "Name": "Plugin",
18 "Description": "Error encountered within the plugin engine"
19 },
20 {
21 "Code": 2,
22 "Name": "NotImplemented",
23 "Description": "Not implemented yet"
24 },
25 {
26 "Code": 3,
27 "HttpStatus": 400,
28 "Name": "ParameterOutOfRange",
29 "Description": "Parameter out of range",
30 "SQLite": true
31 },
32 {
33 "Code": 4,
34 "Name": "NotEnoughMemory",
35 "Description": "The server hosting Orthanc is running out of memory"
36 },
37 {
38 "Code": 5,
39 "HttpStatus": 400,
40 "Name": "BadParameterType",
41 "Description": "Bad type for a parameter",
42 "SQLite": true
43 },
44 {
45 "Code": 6,
46 "Name": "BadSequenceOfCalls",
47 "Description": "Bad sequence of calls"
48 },
49 {
50 "Code": 7,
51 "HttpStatus": 404,
52 "Name": "InexistentItem",
53 "Description": "Accessing an inexistent item"
54 },
55 {
56 "Code": 8,
57 "HttpStatus": 400,
58 "Name": "BadRequest",
59 "Description": "Bad request"
60 },
61 {
62 "Code": 9,
63 "Name": "NetworkProtocol",
64 "Description": "Error in the network protocol"
65 },
66 {
67 "Code": 10,
68 "Name": "SystemCommand",
69 "Description": "Error while calling a system command"
70 },
71 {
72 "Code": 11,
73 "Name": "Database",
74 "Description": "Error with the database engine"
75 },
76 {
77 "Code": 12,
78 "HttpStatus": 400,
79 "Name": "UriSyntax",
80 "Description": "Badly formatted URI"
81 },
82 {
83 "Code": 13,
84 "HttpStatus": 404,
85 "Name": "InexistentFile",
86 "Description": "Inexistent file"
87 },
88 {
89 "Code": 14,
90 "Name": "CannotWriteFile",
91 "Description": "Cannot write to file"
92 },
93 {
94 "Code": 15,
95 "HttpStatus": 400,
96 "Name": "BadFileFormat",
97 "Description": "Bad file format"
98 },
99 {
100 "Code": 16,
101 "Name": "Timeout",
102 "Description": "Timeout"
103 },
104 {
105 "Code": 17,
106 "HttpStatus": 404,
107 "Name": "UnknownResource",
108 "Description": "Unknown resource"
109 },
110 {
111 "Code": 18,
112 "Name": "IncompatibleDatabaseVersion",
113 "Description": "Incompatible version of the database"
114 },
115 {
116 "Code": 19,
117 "Name": "FullStorage",
118 "Description": "The file storage is full"
119 },
120 {
121 "Code": 20,
122 "Name": "CorruptedFile",
123 "Description": "Corrupted file (e.g. inconsistent MD5 hash)"
124 },
125 {
126 "Code": 21,
127 "HttpStatus": 404,
128 "Name": "InexistentTag",
129 "Description": "Inexistent tag"
130 },
131 {
132 "Code": 22,
133 "Name": "ReadOnly",
134 "Description": "Cannot modify a read-only data structure"
135 },
136 {
137 "Code": 23,
138 "Name": "IncompatibleImageFormat",
139 "Description": "Incompatible format of the images"
140 },
141 {
142 "Code": 24,
143 "Name": "IncompatibleImageSize",
144 "Description": "Incompatible size of the images"
145 },
146 {
147 "Code": 25,
148 "Name": "SharedLibrary",
149 "Description": "Error while using a shared library (plugin)"
150 },
151 {
152 "Code": 26,
153 "Name": "UnknownPluginService",
154 "Description": "Plugin invoking an unknown service"
155 },
156 {
157 "Code": 27,
158 "Name": "UnknownDicomTag",
159 "Description": "Unknown DICOM tag"
160 },
161 {
162 "Code": 28,
163 "HttpStatus": 400,
164 "Name": "BadJson",
165 "Description": "Cannot parse a JSON document"
166 },
167 {
168 "Code": 29,
169 "HttpStatus": 401,
170 "Name": "Unauthorized",
171 "Description": "Bad credentials were provided to an HTTP request"
172 },
173 {
174 "Code": 30,
175 "Name": "BadFont",
176 "Description": "Badly formatted font file"
177 },
178 {
179 "Code": 31,
180 "Name": "DatabasePlugin",
181 "Description": "The plugin implementing a custom database back-end does not fulfill the proper interface"
182 },
183 {
184 "Code": 32,
185 "Name": "StorageAreaPlugin",
186 "Description": "Error in the plugin implementing a custom storage area"
187 },
188 {
189 "Code": 33,
190 "Name": "EmptyRequest",
191 "Description": "The request is empty"
192 },
193 {
194 "Code": 34,
195 "HttpStatus": 406,
196 "Name": "NotAcceptable",
197 "Description": "Cannot send a response which is acceptable according to the Accept HTTP header"
198 },
199 {
200 "Code": 35,
201 "Name": "NullPointer",
202 "Description": "Cannot handle a NULL pointer"
203 },
204 {
205 "Code": 36,
206 "HttpStatus": 503,
207 "Name": "DatabaseUnavailable",
208 "Description": "The database is currently not available (probably a transient situation)"
209 },
210 {
211 "Code": 37,
212 "Name": "CanceledJob",
213 "Description": "This job was canceled"
214 },
215 {
216 "Code": 38,
217 "Name": "BadGeometry",
218 "Description": "Geometry error encountered in Stone"
219 },
220 {
221 "Code": 39,
222 "Name": "SslInitialization",
223 "Description": "Cannot initialize SSL encryption, check out your certificates"
224 },
225
226
227
228 /** SQLite **/
229
230
231 {
232 "Code": 1000,
233 "Name": "SQLiteNotOpened",
234 "Description": "SQLite: The database is not opened",
235 "SQLite": true
236 },
237 {
238 "Code": 1001,
239 "Name": "SQLiteAlreadyOpened",
240 "Description": "SQLite: Connection is already open",
241 "SQLite": true
242 },
243 {
244 "Code": 1002,
245 "Name": "SQLiteCannotOpen",
246 "Description": "SQLite: Unable to open the database",
247 "SQLite": true
248 },
249 {
250 "Code": 1003,
251 "Name": "SQLiteStatementAlreadyUsed",
252 "Description": "SQLite: This cached statement is already being referred to",
253 "SQLite": true
254 },
255 {
256 "Code": 1004,
257 "Name": "SQLiteExecute",
258 "Description": "SQLite: Cannot execute a command",
259 "SQLite": true
260 },
261 {
262 "Code": 1005,
263 "Name": "SQLiteRollbackWithoutTransaction",
264 "Description": "SQLite: Rolling back a nonexistent transaction (have you called Begin()?)",
265 "SQLite": true
266 },
267 {
268 "Code": 1006,
269 "Name": "SQLiteCommitWithoutTransaction",
270 "Description": "SQLite: Committing a nonexistent transaction",
271 "SQLite": true
272 },
273 {
274 "Code": 1007,
275 "Name": "SQLiteRegisterFunction",
276 "Description": "SQLite: Unable to register a function",
277 "SQLite": true
278 },
279 {
280 "Code": 1008,
281 "Name": "SQLiteFlush",
282 "Description": "SQLite: Unable to flush the database",
283 "SQLite": true
284 },
285 {
286 "Code": 1009,
287 "Name": "SQLiteCannotRun",
288 "Description": "SQLite: Cannot run a cached statement",
289 "SQLite": true
290 },
291 {
292 "Code": 1010,
293 "Name": "SQLiteCannotStep",
294 "Description": "SQLite: Cannot step over a cached statement",
295 "SQLite": true
296 },
297 {
298 "Code": 1011,
299 "Name": "SQLiteBindOutOfRange",
300 "Description": "SQLite: Bing a value while out of range (serious error)",
301 "SQLite": true
302 },
303 {
304 "Code": 1012,
305 "Name": "SQLitePrepareStatement",
306 "Description": "SQLite: Cannot prepare a cached statement",
307 "SQLite": true
308 },
309 {
310 "Code": 1013,
311 "Name": "SQLiteTransactionAlreadyStarted",
312 "Description": "SQLite: Beginning the same transaction twice",
313 "SQLite": true
314 },
315 {
316 "Code": 1014,
317 "Name": "SQLiteTransactionCommit",
318 "Description": "SQLite: Failure when committing the transaction",
319 "SQLite": true
320 },
321 {
322 "Code": 1015,
323 "Name": "SQLiteTransactionBegin",
324 "Description": "SQLite: Cannot start a transaction",
325 "SQLite": true
326 },
327
328
329
330 /** Specific error codes **/
331
332
333 {
334 "Code": 2000,
335 "Name": "DirectoryOverFile",
336 "Description": "The directory to be created is already occupied by a regular file"
337 },
338 {
339 "Code": 2001,
340 "Name": "FileStorageCannotWrite",
341 "Description": "Unable to create a subdirectory or a file in the file storage"
342 },
343 {
344 "Code": 2002,
345 "Name": "DirectoryExpected",
346 "Description": "The specified path does not point to a directory"
347 },
348 {
349 "Code": 2003,
350 "Name": "HttpPortInUse",
351 "Description": "The TCP port of the HTTP server is privileged or already in use"
352 },
353 {
354 "Code": 2004,
355 "Name": "DicomPortInUse",
356 "Description": "The TCP port of the DICOM server is privileged or already in use"
357 },
358 {
359 "Code": 2005,
360 "Name": "BadHttpStatusInRest",
361 "Description": "This HTTP status is not allowed in a REST API"
362 },
363 {
364 "Code": 2006,
365 "Name": "RegularFileExpected",
366 "Description": "The specified path does not point to a regular file"
367 },
368 {
369 "Code": 2007,
370 "Name": "PathToExecutable",
371 "Description": "Unable to get the path to the executable"
372 },
373 {
374 "Code": 2008,
375 "Name": "MakeDirectory",
376 "Description": "Cannot create a directory"
377 },
378 {
379 "Code": 2009,
380 "Name": "BadApplicationEntityTitle",
381 "Description": "An application entity title (AET) cannot be empty or be longer than 16 characters"
382 },
383 {
384 "Code": 2010,
385 "Name": "NoCFindHandler",
386 "Description": "No request handler factory for DICOM C-FIND SCP"
387 },
388 {
389 "Code": 2011,
390 "Name": "NoCMoveHandler",
391 "Description": "No request handler factory for DICOM C-MOVE SCP"
392 },
393 {
394 "Code": 2012,
395 "Name": "NoCStoreHandler",
396 "Description": "No request handler factory for DICOM C-STORE SCP"
397 },
398 {
399 "Code": 2013,
400 "Name": "NoApplicationEntityFilter",
401 "Description": "No application entity filter"
402 },
403 {
404 "Code": 2014,
405 "Name": "NoSopClassOrInstance",
406 "Description": "DicomUserConnection: Unable to find the SOP class and instance"
407 },
408 {
409 "Code": 2015,
410 "Name": "NoPresentationContext",
411 "Description": "DicomUserConnection: No acceptable presentation context for modality"
412 },
413 {
414 "Code": 2016,
415 "Name": "DicomFindUnavailable",
416 "Description": "DicomUserConnection: The C-FIND command is not supported by the remote SCP"
417 },
418 {
419 "Code": 2017,
420 "Name": "DicomMoveUnavailable",
421 "Description": "DicomUserConnection: The C-MOVE command is not supported by the remote SCP"
422 },
423 {
424 "Code": 2018,
425 "Name": "CannotStoreInstance",
426 "Description": "Cannot store an instance"
427 },
428 {
429 "Code": 2019,
430 "HttpStatus": 400,
431 "Name": "CreateDicomNotString",
432 "Description": "Only string values are supported when creating DICOM instances"
433 },
434 {
435 "Code": 2020,
436 "HttpStatus": 400,
437 "Name": "CreateDicomOverrideTag",
438 "Description": "Trying to override a value inherited from a parent module"
439 },
440 {
441 "Code": 2021,
442 "HttpStatus": 400,
443 "Name": "CreateDicomUseContent",
444 "Description": "Use \\\"Content\\\" to inject an image into a new DICOM instance"
445 },
446 {
447 "Code": 2022,
448 "HttpStatus": 400,
449 "Name": "CreateDicomNoPayload",
450 "Description": "No payload is present for one instance in the series"
451 },
452 {
453 "Code": 2023,
454 "HttpStatus": 400,
455 "Name": "CreateDicomUseDataUriScheme",
456 "Description": "The payload of the DICOM instance must be specified according to Data URI scheme"
457 },
458 {
459 "Code": 2024,
460 "HttpStatus": 400,
461 "Name": "CreateDicomBadParent",
462 "Description": "Trying to attach a new DICOM instance to an inexistent resource"
463 },
464 {
465 "Code": 2025,
466 "HttpStatus": 400,
467 "Name": "CreateDicomParentIsInstance",
468 "Description": "Trying to attach a new DICOM instance to an instance (must be a series, study or patient)"
469 },
470 {
471 "Code": 2026,
472 "Name": "CreateDicomParentEncoding",
473 "Description": "Unable to get the encoding of the parent resource"
474 },
475 {
476 "Code": 2027,
477 "Name": "UnknownModality",
478 "Description": "Unknown modality"
479 },
480 {
481 "Code": 2028,
482 "Name": "BadJobOrdering",
483 "Description": "Bad ordering of filters in a job"
484 },
485 {
486 "Code": 2029,
487 "Name": "JsonToLuaTable",
488 "Description": "Cannot convert the given JSON object to a Lua table"
489 },
490 {
491 "Code": 2030,
492 "Name": "CannotCreateLua",
493 "Description": "Cannot create the Lua context"
494 },
495 {
496 "Code": 2031,
497 "Name": "CannotExecuteLua",
498 "Description": "Cannot execute a Lua command"
499 },
500 {
501 "Code": 2032,
502 "Name": "LuaAlreadyExecuted",
503 "Description": "Arguments cannot be pushed after the Lua function is executed"
504 },
505 {
506 "Code": 2033,
507 "Name": "LuaBadOutput",
508 "Description": "The Lua function does not give the expected number of outputs"
509 },
510 {
511 "Code": 2034,
512 "Name": "NotLuaPredicate",
513 "Description": "The Lua function is not a predicate (only true/false outputs allowed)"
514 },
515 {
516 "Code": 2035,
517 "Name": "LuaReturnsNoString",
518 "Description": "The Lua function does not return a string"
519 },
520 {
521 "Code": 2036,
522 "Name": "StorageAreaAlreadyRegistered",
523 "Description": "Another plugin has already registered a custom storage area"
524 },
525 {
526 "Code": 2037,
527 "Name": "DatabaseBackendAlreadyRegistered",
528 "Description": "Another plugin has already registered a custom database back-end"
529 },
530 {
531 "Code": 2038,
532 "Name": "DatabaseNotInitialized",
533 "Description": "Plugin trying to call the database during its initialization"
534 },
535 {
536 "Code": 2039,
537 "Name": "SslDisabled",
538 "Description": "Orthanc has been built without SSL support"
539 },
540 {
541 "Code": 2040,
542 "Name": "CannotOrderSlices",
543 "Description": "Unable to order the slices of the series"
544 },
545 {
546 "Code": 2041,
547 "Name": "NoWorklistHandler",
548 "Description": "No request handler factory for DICOM C-Find Modality SCP"
549 },
550 {
551 "Code": 2042,
552 "Name": "AlreadyExistingTag",
553 "Description": "Cannot override the value of a tag that already exists"
554 },
555 {
556 "Code": 2043,
557 "Name": "NoStorageCommitmentHandler",
558 "Description": "No request handler factory for DICOM N-ACTION SCP (storage commitment)"
559 },
560 {
561 "Code": 2044,
562 "Name": "NoCGetHandler",
563 "Description": "No request handler factory for DICOM C-GET SCP"
564 },
565
566
567
568 /** HTTP-related error codes **/
569
570 {
571 "Code": 3000,
572 "HttpStatus": 415,
573 "Name": "UnsupportedMediaType",
574 "Description": "Unsupported media type"
575 }
576 ]