Added validation for Interface Operation
[sdc.git] / catalog-be / src / main / resources / config / error-configuration.yaml
1 # Errors
2 errors:
3     OK: {
4         code: 200,
5         message: "OK"
6     }
7     CREATED: {
8         code: 201,
9         message: "OK"
10     }
11     ACCEPTED: {
12         code: 202,
13         message: "Accepted"
14     }
15     NO_CONTENT: {
16         code: 204,
17         message: "No Content"
18     }
19 #--------POL4050-----------------------------
20     NOT_ALLOWED: {
21         code: 405,
22         message: "Error: Method not allowed.",
23         messageId: "POL4050"
24     }
25 #--------POL5000-----------------------------
26     GENERAL_ERROR: {
27         code: 500,
28         message: "Error: Internal Server Error. Please try again later.",
29         messageId: "POL5000"
30     }
31 #---------POL5001------------------------------
32     MISSING_X_ECOMP_INSTANCE_ID: {
33         code: 400  ,
34         message: "Error: Missing 'X-ECOMP-InstanceID' HTTP header.",
35         messageId: "POL5001"
36     }
37 #---------POL5002------------------------------
38     AUTH_REQUIRED: {
39         code: 401  ,
40         message: "Error: Authentication is required to use the API.",
41         messageId: "POL5002"
42     }
43 #---------POL5003------------------------------
44     AUTH_FAILED: {
45         code: 403  ,
46         message: "Error: Not authorized to use the API.",
47         messageId: "POL5003"
48     }
49 #---------POL5004------------------------------
50     MISSING_USER_ID: {
51         code: 400  ,
52         message: "Error: Missing 'USER_ID' HTTP header.",
53         messageId: "POL5004"
54     }
55 #---------SVC4000-----------------------------
56     INVALID_CONTENT: {
57         code: 400,
58         message: "Error: Invalid content.",
59         messageId: "SVC4000"
60     }
61 #---------SVC4002-----------------------------
62     MISSING_INFORMATION: {
63         code: 403,
64         message: "Error: Missing information.",
65         messageId: "SVC4002"
66     }
67 #---------SVC4003------------------------------
68 # %1 - Users's ID
69     USER_NOT_FOUND: {
70         code: 404,
71         message: "Error: User '%1' was not found.",
72         messageId: "SVC4003"
73     }
74 #---------SVC4004-----------------------------
75 # %1 - Users's email address
76     INVALID_EMAIL_ADDRESS: {
77         code: 400,
78         message: "Error: Invalid email address '%1'.",
79         messageId: "SVC4004"
80     }
81 #---------SVC4005------------------------------
82 # %1 - role
83     INVALID_ROLE: {
84         code: 400,
85         message: "Error: Invalid role '%1'.",
86         messageId: "SVC4005"
87     }
88 #---------SVC4006------------------------------
89 # %1 - Users's USER_ID
90     USER_ALREADY_EXIST: {
91         code: 409,
92         message: "Error: User with '%1' ID already exists.",
93         messageId: "SVC4006"
94     }
95 #---------SVC4007------------------------------
96     DELETE_USER_ADMIN_CONFLICT: {
97         code: 409,
98         message: "Error: An administrator can only be deleted by another administrator.",
99         messageId: "SVC4007"
100     }
101 #---------SVC4008-----------------------------
102 # %1 - Users's userId
103     INVALID_USER_ID: {
104         code: 400,
105         message: "Error: Invalid userId '%1'.",
106         messageId: "SVC4008"
107     }
108 #---------SVC4049------------------------------
109 # %1 - service/resource
110     COMPONENT_MISSING_CONTACT: {
111         code: 400,
112         message: "Error: Invalid Content. Missing %1 contact.",
113         messageId: "SVC4049"
114     }
115 #---------SVC4050-----------------------------
116 # %1 - Service/Resource/Additional parameter
117 # %2 - service/resource/label name
118     COMPONENT_NAME_ALREADY_EXIST: {
119         code: 409,
120         message: "Error: %1 with name '%2' already exists.",
121         messageId: "SVC4050"
122     }
123 #---------SVC4051------------------------------
124 # %1 - resource/service
125     COMPONENT_MISSING_CATEGORY: {
126         code: 400,
127         message: "Error: Invalid Content. Missing %1 category.",
128         messageId: "SVC4051"
129     }
130
131 #---------SVC4052------------------------------
132     COMPONENT_MISSING_TAGS: {
133         code: 400,
134         message: "Error: Invalid Content. At least one tag has to be specified.",
135         messageId: "SVC4052"
136     }
137
138 #---------SVC4053------------------------------
139 # %1 - service/resource
140     COMPONENT_MISSING_DESCRIPTION: {
141         code: 400,
142         message: "Error: Invalid Content. Missing %1 description.",
143         messageId: "SVC4053"
144     }
145 #---------SVC4054------------------------------
146 # %1 - resource/service
147     COMPONENT_INVALID_CATEGORY: {
148         code: 400,
149         message: "Error: Invalid Content. Invalid %1 category.",
150         messageId: "SVC4054"
151     }
152 #---------SVC4055------------------------------
153     MISSING_VENDOR_NAME: {
154         code: 400,
155         message: "Error: Invalid Content. Missing vendor name.",
156         messageId: "SVC4055"
157     }
158 #---------SVC4056------------------------------
159     MISSING_VENDOR_RELEASE: {
160         code: 400,
161         message: "Error: Invalid Content. Missing vendor release.",
162         messageId: "SVC4056"
163     }
164
165 #---------SVC4057------------------------------
166     MISSING_DERIVED_FROM_TEMPLATE: {
167         code: 400,
168         message: "Error: Invalid Content. Missing derived from template specification.",
169         messageId: "SVC4057"
170     }
171
172 #---------SVC4058------------------------------
173 # %1 - service/resource
174     COMPONENT_MISSING_ICON: {
175         code: 400,
176         message: "Error: Invalid Content. Missing %1 icon.",
177         messageId: "SVC4058"
178     }
179 #---------SVC4059------------------------------
180 # %1 - service/resource
181     COMPONENT_INVALID_ICON: {
182         code: 400,
183         message: "Error: Invalid Content. Invalid %1 icon.",
184         messageId: "SVC4059"
185     }
186 #---------SVC4060------------------------------
187     PARENT_RESOURCE_NOT_FOUND: {
188         code: 400,
189         message: "Error: Invalid Content. Derived from resource template was not found.",
190         messageId: "SVC4060"
191     }
192 #---------SVC4061------------------------------
193     MULTIPLE_PARENT_RESOURCE_FOUND: {
194         code: 400,
195         message: "Error: Invalid Content. Multiple derived from resource template is not allowed.",
196         messageId: "SVC4061"
197     }
198
199 #---------SVC4062------------------------------
200 # %1 - service/resource
201     MISSING_COMPONENT_NAME: {
202         code: 400,
203         message: "Error: Invalid Content. Missing %1 name.",
204         messageId: "SVC4062"
205     }
206 #---------SVC4063------------------------------
207     #%1  -  resource/service name
208     RESOURCE_NOT_FOUND: {
209         code: 404,
210         message: "Error: Requested '%1' resource was not found.",
211         messageId: "SVC4063"
212     }
213
214 #---------SVC4064------------------------------
215 # %1 - Service/Resource/Property
216     COMPONENT_INVALID_DESCRIPTION: {
217         code: 400,
218         message: "Error: Invalid Content. %1 description contains non-english characters.",
219         messageId: "SVC4064"
220     }
221 #---------SVC4065------------------------------
222 # %1 - Service/Resource/Property
223 # %2 - max resource/service name length
224     COMPONENT_DESCRIPTION_EXCEEDS_LIMIT: {
225         code: 400,
226         message: "Error: Invalid Content. %1 description exceeds limit of %2 characters.",
227         messageId: "SVC4065"
228     }
229 #---------SVC4066------------------------------
230 # %1 - max length
231     COMPONENT_TAGS_EXCEED_LIMIT: {
232         code: 400,
233         message: "Error: Invalid Content. Tags overall length exceeds limit of %1 characters.",
234         messageId: "SVC4066"
235     }
236 #---------SVC4067------------------------------
237 # %1 - max length
238     VENDOR_NAME_EXCEEDS_LIMIT: {
239         code: 400,
240         message: "Error: Invalid Content. Vendor name exceeds limit of %1 characters.",
241         messageId: "SVC4067"
242     }
243 #---------SVC4068------------------------------
244 # %1 - max length
245     VENDOR_RELEASE_EXCEEDS_LIMIT: {
246         code: 400,
247         message: "Error: Invalid Content. Vendor release exceeds limit of %1 characters.",
248         messageId: "SVC4068"
249     }
250
251 #---------SVC4069------------------------------
252 # %1 - Service/Resource/Product
253     COMPONENT_INVALID_CONTACT: {
254         code: 400,
255         message: "Error: Invalid Content. %1 Contact Id should be in format 'mnnnnnn' or 'aannna' or 'aannnn', where m=m ,a=a-zA-Z and n=0-9",
256         messageId: "SVC4069"
257     }
258 #---------SVC4070------------------------------
259 # %1 - Service/Resource
260     INVALID_COMPONENT_NAME: {
261         code: 400,
262         message: 'Error: Invalid Content. %1 name is not allowed to contain characters like <>:"\/|?* and space characters other than regular space.',
263         messageId: "SVC4070"
264     }
265
266 #---------SVC4071------------------------------
267     INVALID_VENDOR_NAME: {
268         code: 400,
269         message: 'Error: Invalid Content. Vendor name is not allowed to contain characters like <>:"\/|?* and space characters other than regular space.',
270         messageId: "SVC4071"
271     }
272 #---------SVC4072------------------------------
273     INVALID_VENDOR_RELEASE: {
274         code: 400,
275         message: 'Error: Invalid Content. Vendor release is not allowed to contain characters like <>:"\/|?* and space characters other than regular space.',
276         messageId: "SVC4072"
277     }
278 #---------SVC4073------------------------------
279 # %1 - Service/Resource
280 # %2 - max  resource/service name
281     COMPONENT_NAME_EXCEEDS_LIMIT: {
282         code: 400,
283         message: "Error: Invalid Content. %1 name exceeds limit of %2 characters.",
284         messageId: "SVC4073"
285     }
286 #---------SVC4080------------------------------
287 # %1 - resource/service name
288 # %2 - resource/service
289 # %3 - First name of last modifier
290 # %4 - Last name of last modifier
291 # %5 - USER_ID of last modifier
292     COMPONENT_IN_CHECKOUT_STATE: {
293         code: 403,
294         message: "Error: Requested '%1' %2 is locked for modification by %3 %4(%5).",
295         messageId: "SVC4080"
296     }
297 #---------SVC4081-----------------------------
298 # %1 - resource/service name
299 # %2 - resource/service
300 # %3 - First name of last modifier
301 # %4 - Last name of last modifier
302 # %5 - USER_ID of last modifier
303     COMPONENT_IN_CERT_IN_PROGRESS_STATE: {
304         code: 403,
305         message: "Error: Requested '%1' %2 is locked for certification by %3 %4(%5).",
306         messageId: "SVC4081"
307     }
308
309 #-----------SVC4082---------------------------
310 # %1 - resource/service name
311 # %2 - resource/service
312 # %3 - First name of last modifier
313 # %4 - Last name of last modifier
314 # %5 - USER_ID of last modifier
315     COMPONENT_SENT_FOR_CERTIFICATION: {
316         code: 403,
317         message: "Error: Requested '%1' %2 is sent for certification by %3 %4(%5).",
318         messageId: "SVC4082"
319     }
320 #-----------SVC4083---------------------------
321     COMPONENT_VERSION_ALREADY_EXIST: {
322         code: 409,
323         message: "Error: Version of this %1 was already promoted.",
324         messageId: "SVC4083"
325     }
326 #-----------SVC4084---------------------------
327 # %1 - resource/service/product name
328 # %2 - resource/service/product
329 # %3 - First name of last modifier
330 # %4 - Last name of last modifier
331 # %5 - USER_ID of last modifier
332     COMPONENT_ALREADY_CHECKED_IN: {
333         code: 409,
334         message: "Error: The current version of '%1' %2 was already checked-in by %3 %4(%5).",
335         messageId: "SVC4084"
336     }
337 #-----------SVC4085---------------------------
338 # %1 - resource/service/product name
339 # %2 - resource/service/product
340 # %3 - First name of last modifier
341 # %4 - Last name of last modifier
342 # %5 - USER_ID of last modifier
343     COMPONENT_CHECKOUT_BY_ANOTHER_USER: {
344         code: 403,
345         message: "Error: %1 %2 has already been checked out by %3 %4(%5).",
346         messageId: "SVC4085"
347     }
348 #-----------SVC4086---------------------------
349 # %1  - resource/service name
350 # %2  - resource/service
351     COMPONENT_IN_USE: {
352         code: 403,
353         message: "Error: Requested '%1' %2 is in use by another user.",
354         messageId: "SVC4086"
355     }
356 #-----------SVC4087---------------------------
357 # %1 - component name
358 # %2 - resource/service/product
359     COMPONENT_HAS_NEWER_VERSION: {
360         code: 409,
361         message: "Error: Checking out of the requested version of the '%1' %2 is not allowed as a newer version exists.",
362         messageId: "SVC4087"
363     }
364 #-----------SVC4088---------------------------
365 # %1 - resource/service name
366 # %2 - resource/service
367 # %3 - First name of last modifier
368 # %4 - Last name of last modifier
369 # %5 - USER_ID of last modifier
370     COMPONENT_ALREADY_CERTIFIED: {
371         code: 403,
372         message: "Error: Requested %1 %2 has already been certified by %3 %4(%5).",
373         messageId: "SVC4088"
374     }
375 #-----------SVC4089---------------------------
376 # %1 - resource/service name
377 # %2 - resource/service
378     COMPONENT_NOT_READY_FOR_CERTIFICATION: {
379         code: 403,
380         message: "Error: Requested '%1' %2 is not ready for certification.",
381         messageId: "SVC4089"
382     }
383 #-----------SVC4100---------------------------
384 #%1 - property name
385     PROPERTY_NOT_FOUND: {
386         code: 404,
387         message: "Error: Requested '%1' property was not found.",
388         messageId: "SVC4100"
389     }
390 #-----------SVC4101---------------------------
391 #%1 - property name
392     PROPERTY_ALREADY_EXIST: {
393         code: 409,
394         message: "Error: Property with '%1' name already exists.",
395         messageId: "SVC4101"
396     }
397
398 #-----------SVC4102---------------------------
399 # %1 - capability type name
400     CAPABILITY_TYPE_ALREADY_EXIST: {
401         code: 409,
402         message: "Error: Capability Type with name '%1' already exists.",
403         messageId: "SVC4102"
404     }
405 #-----------SVC4114---------------------------
406     AUTH_FAILED_INVALIDE_HEADER: {
407         code: 400,
408         message: "Error: Invalid Authorization header.",
409         messageId: "SVC4114"
410     }
411 #-----------SVC4115---------------------------
412 # %1 - capability type name
413     MISSING_CAPABILITY_TYPE: {
414         code: 400,
415         message: "Error: Invalid Content. Missing Capability Type '%1'.",
416         messageId: "SVC4115"
417     }
418     RESOURCE_INSTANCE_BAD_REQUEST: {
419         code: 400,
420         message: "Error: Invalid Content.",
421         messageId: "SVC4116"
422     }
423 #-----------SVC4117---------------------------
424 # %1 - resource instance name
425 # %2 - resource instance name
426 # %3 - requirement name
427     RESOURCE_INSTANCE_MATCH_NOT_FOUND: {
428         code: 404,
429         message: "Error: Match not found between resource instance '%1' and resource instance '%2' for requirement '%3'.",
430         messageId: "SVC4117"
431     }
432 #-----------SVC4118---------------------------
433 # %1 - resource instance name
434 # %2 - resource instance name
435 # %3 - requirement name
436     RESOURCE_INSTANCE_ALREADY_EXIST: {
437         code: 409,
438         message: "Error: Resource instances '%1' and '%2' are already associated with requirement '%3'.",
439         messageId: "SVC4118"
440     }
441 #-----------SVC4119---------------------------
442 # %1 - resource instance name
443 # %2 - resource instance name
444 # %3 - requirement name
445     RESOURCE_INSTANCE_RELATION_NOT_FOUND: {
446         code: 404,
447         message: "Error: No relation found between resource instances '%1' and '%2' for requirement '%3'.",
448         messageId: "SVC4119"
449     }
450 #-----------SVC4120---------------------------
451 # %1 - User's USER_ID
452     USER_INACTIVE: {
453         code: 404,
454         message: "Error: User %1 was not found.",
455         messageId: "SVC4120"
456     }
457 #-----------SVC4121---------------------------
458 # %1 - User's USER_ID
459     USER_HAS_ACTIVE_ELEMENTS: {
460         code: 403,
461         message: "Error: User with %1 ID can not be deleted since it has active elements(resources/services/artifacts).",
462         messageId: "SVC4121"
463     }
464 #-----------SVC4122---------------------------
465 # %1 - artifact type
466     ARTIFACT_TYPE_NOT_SUPPORTED: {
467         code: 400,
468         message: "Error: Invalid artifact type '%1'.",
469         messageId: "SVC4122"
470     }
471 #-----------SVC4123---------------------------
472     ARTIFACT_LOGICAL_NAME_CANNOT_BE_CHANGED: {
473         code: 400,
474         message: "Error: Artifact logical name cannot be changed.",
475         messageId: "SVC4123"
476     }
477 #-----------SVC4124---------------------------
478     MISSING_ARTIFACT_TYPE: {
479         code: 400,
480         message: "Error: Missing artifact type.",
481         messageId: "SVC4124"
482     }
483 #-----------SVC4125---------------------------
484 # %1-artifact name
485     ARTIFACT_EXIST: {
486         code: 400,
487         message: "Error: Artifact '%1' already exists.",
488         messageId: "SVC4125"
489     }
490 #---------SVC4126------------------------------
491 # %1 - resource/service/product/...
492 # %2 - field (tag, vendor name...)
493     INVALID_FIELD_FORMAT: {
494         code: 400,
495         message: "Error:  Invalid %1 %2 format.",
496         messageId: "SVC4126"
497     }
498 #-----------SVC4127---------------------------
499     ARTIFACT_INVALID_MD5: {
500         code: 400,
501         message: "Error: Invalid artifact checksum.",
502         messageId: "SVC4127"
503     }
504 #-----------SVC4128---------------------------
505     MISSING_ARTIFACT_NAME: {
506         code: 400,
507         message: "Error: Invalid content. Missing artifact name.",
508         messageId: "SVC4128"
509     }
510 #-----------SVC4129---------------------------
511     MISSING_PROJECT_CODE: {
512         code: 400,
513         message: "Error: Invalid Content. Missing PROJECT_CODE number.",
514         messageId: "SVC4129"
515     }
516 #-----------SVC4130---------------------------
517     INVALID_PROJECT_CODE: {
518         code: 400,
519         message: "Error: Invalid Content. PROJECT_CODE must be from 3 up to 50 characters.",
520         messageId: "SVC4130"
521     }
522 #-----------SVC4131---------------------------
523 # %1-resource/service
524 # %2-srtifact/artifacts
525 # %3-semicolomn separated list of artifact
526     COMPONENT_MISSING_MANDATORY_ARTIFACTS: {
527         code: 403,
528         message: "Error: Missing mandatory informational %1 %2: [%3].",
529         messageId: "SVC4131"
530     }
531 #-----------SVC4132---------------------------
532 # %1 - lifecycle  type name
533     LIFECYCLE_TYPE_ALREADY_EXIST: {
534         code: 409,
535         message: "Error: Lifecycle Type with name '%1' already exists.",
536         messageId: "SVC4132"
537     }
538 #-----------SVC4133---------------------------
539 # %1 - service version
540 # %2 - service name
541     SERVICE_NOT_AVAILABLE_FOR_DISTRIBUTION: {
542         code: 403,
543         message: "Error: Version %1 of '%2' service is not available for distribution.",
544         messageId: "SVC4133"
545     }
546 #-----------SVC4134---------------------------
547     MISSING_LIFECYCLE_TYPE: {
548         code: 400,
549         message: "Error: Invalid Content. Missing interface life-cycle type.",
550         messageId: "SVC4134"
551     }
552 #---------SVC4135------------------------------
553     SERVICE_CATEGORY_CANNOT_BE_CHANGED: {
554         code: 400,
555         message: "Error: Service category cannot be changed once the service is certified.",
556         messageId: "SVC4135"
557     }
558 #---------SVC4136------------------------------
559 # %1 - distribution environment name
560     DISTRIBUTION_ENVIRONMENT_NOT_AVAILABLE: {
561         code: 500,
562         message: "Error: Requested distribution environment '%1' is not available.",
563         messageId: "SVC4136"
564     }
565 #---------SVC4137------------------------------
566 # %1 - distribution environment name
567     DISTRIBUTION_ENVIRONMENT_NOT_FOUND: {
568         code: 400,
569         message: "Error: Requested distribution environment '%1' was not found.",
570         messageId: "SVC4137"
571     }
572 #---------SVC4138------------------------------
573     DISTRIBUTION_ENVIRONMENT_INVALID: {
574         code: 400,
575         message: "Error: Invalid distribution environment.",
576         messageId: "SVC4138"
577     }
578 #---------SVC4139------------------------------
579 # %1 - service name
580     DISTRIBUTION_ARTIFACT_NOT_FOUND: {
581         code: 409,
582         message: "Error: Service '%1' cannot be distributed due to missing deployment artifacts.",
583         messageId: "SVC4139"
584     }
585 #---------SVC4200------------------------------
586 # %1 - Service/Resource
587 # %2 - max icon name length
588     COMPONENT_ICON_EXCEEDS_LIMIT: {
589         code: 400,
590         message: "Error: Invalid Content. %1 icon name exceeds limit of %2 characters.",
591         messageId: "SVC4200"
592     }
593 #---------SVC4300------------------------------
594     RESTRICTED_ACCESS: {
595         code: 403,
596         message: "Error: Restricted access.",
597         messageId: "SVC4300"
598     }
599 #---------SVC4301------------------------------
600     RESTRICTED_OPERATION: {
601         code: 403,
602         message: "Error: Restricted operation.",
603         messageId: "SVC4301"
604     }
605 #---------SVC4500------------------------------
606     MISSING_BODY: {
607         code: 400  ,
608         message: "Error: Missing request body.",
609         messageId: "SVC4500"
610     }
611 #---------SVC4501------------------------------
612     MISSING_PUBLIC_KEY: {
613         code: 400  ,
614         message: "Error: Invalid Content. Missing mandatory parameter 'apiPublicKey'." ,
615         messageId: "SVC4501"
616     }
617 #---------SVC4502------------------------------
618     DISTRIBUTION_ENV_DOES_NOT_EXIST: {
619         code: 400  ,
620         message: "Error: Invalid  Body  : Missing mandatory parameter 'distrEnvName'." ,
621         messageId: "SVC4502"
622     }
623 #-----------SVC4503---------------------------
624 # %1 - service name
625     SERVICE_NOT_FOUND: {
626         code: 404,
627         message: "Error: Requested '%1' service was not found.",
628         messageId: "SVC4503"
629     }
630
631 #---------SVC4504------------------------------
632 # %1 - Service/Resource
633 # %2 - service/resource version
634     COMPONENT_VERSION_NOT_FOUND: {
635         code: 404,
636         message: "Error: %1 version %2 was not found.",
637         messageId: "SVC4504"
638     }
639 #-----------SVC4505---------------------------
640     #%1-artifact name
641
642     ARTIFACT_NOT_FOUND: {
643         code: 404,
644         message: "Error: Artifact '%1' was not found.",
645         messageId: "SVC4505"
646     }
647 #---------SVC4506------------------------------
648     MISSING_ENV_NAME: {
649         code: 400  ,
650         message: "Error: Invalid Content. Missing mandatory parameter 'distrEnvName'.",
651         messageId: "SVC4506"
652     }
653 #---------SVC4507------------------------------
654     COMPONENT_INVALID_TAGS_NO_COMP_NAME: {
655         code: 400,
656         message: "Error: Invalid Content. One of the tags should be the component name.",
657         messageId: "SVC4507"
658     }
659
660 #---------SVC4508------------------------------
661     SERVICE_NAME_CANNOT_BE_CHANGED: {
662         code: 400,
663         message: "Error: Service name cannot be changed once the service is certified.",
664         messageId: "SVC4508"
665     }
666
667 #---------SVC4509------------------------------
668     SERVICE_ICON_CANNOT_BE_CHANGED: {
669         code: 400,
670         message: "Error: Icon cannot be changed once the service is certified.",
671         messageId: "SVC4509"
672     }
673 #---------SVC4510------------------------------
674 # %1 - icon name max length
675     SERVICE_ICON_EXCEEDS_LIMIT: {
676         code: 400,
677         message: "Error: Invalid Content. Icon name exceeds limit of %1 characters.",
678         messageId: "SVC4510"
679     }
680 #---------SVC4511------------------------------
681     DISTRIBUTION_REQUESTED_NOT_FOUND: {
682         code: 404,
683         message: "Error: Requested distribution was not found.",
684         messageId: "SVC4511"
685     }
686 #---------SVC4512------------------------------
687 # %1 - Distribution ID
688     DISTRIBUTION_REQUESTED_FAILED: {
689         code: 403,
690         message: "Error: Requested distribution '%1' failed.",
691         messageId: "SVC4512"
692     }
693 #---------SVC4513------------------------------
694     RESOURCE_CATEGORY_CANNOT_BE_CHANGED: {
695         code: 400,
696         message: "Error: Resource category cannot be changed once the resource is certified.",
697         messageId: "SVC4513"
698     }
699 #---------SVC4514------------------------------
700     RESOURCE_NAME_CANNOT_BE_CHANGED: {
701         code: 400,
702         message: "Error: Resource name cannot be changed once the resource is certified.",
703         messageId: "SVC4514"
704     }
705 #---------SVC4515------------------------------
706     RESOURCE_ICON_CANNOT_BE_CHANGED: {
707         code: 400,
708         message: "Error: Icon cannot be changed once the resource is certified.",
709         messageId: "SVC4515"
710     }
711 #---------SVC4516------------------------------
712     RESOURCE_VENDOR_NAME_CANNOT_BE_CHANGED: {
713         code: 400,
714         message: "Error: Vendor name cannot be changed once the resource is certified.",
715         messageId: "SVC4516"
716     }
717 #---------SVC4517------------------------------
718     RESOURCE_DERIVED_FROM_CANNOT_BE_CHANGED: {
719         code: 400,
720         message: "Error: Derived from resource template cannot be changed once the resource is certified.",
721         messageId: "SVC4517"
722     }
723 #---------SVC4518------------------------------
724 # %1 - max length
725     COMPONENT_SINGLE_TAG_EXCEED_LIMIT: {
726         code: 400,
727         message: "Error: Invalid Content. Single tag exceeds limit of %1 characters.",
728         messageId: "SVC4518"
729     }
730 #---------SVC4519------------------------------
731     INVALID_DEFAULT_VALUE: {
732         code: 400,
733         message: "Error: mismatch in data-type occurred for property %1. data type is %2 and default value found is %3.",
734         messageId: "SVC4519"
735     }
736 #---------SVC4520------------------------------
737 # %1 - service or resource
738     ADDITIONAL_INFORMATION_MAX_NUMBER_REACHED: {
739         code: 409,
740         message: "Error: Maximal number of additional %1 parameters was reached.",
741         messageId: "SVC4520"
742     }
743 #---------SVC4521------------------------------
744     ADDITIONAL_INFORMATION_EMPTY_STRING_NOT_ALLOWED: {
745         code: 400,
746         message: "Error: Invalid Content. The Additional information label and value cannot be empty.",
747         messageId: "SVC4521"
748     }
749 #---------SVC4522------------------------------
750 # %1 - label/value
751 # %2 - Maximal length of %1
752     ADDITIONAL_INFORMATION_EXCEEDS_LIMIT: {
753         code: 400,
754         message: "Error: Invalid Content. Additional information %1 exceeds limit of %2 characters.",
755         messageId: "SVC4522"
756     }
757 #---------SVC4523------------------------------
758     ADDITIONAL_INFORMATION_KEY_NOT_ALLOWED_CHARACTERS: {
759         code: 400,
760         message: 'Error: Invalid Content. Additional information label is not allowed to contain characters like <>:"\/|?* and space characters other than regular space.',
761         messageId: "SVC4523"
762     }
763 #---------SVC4524------------------------------
764     ADDITIONAL_INFORMATION_NOT_FOUND: {
765         code: 409,
766         message: "Error: Requested additional information was not found.",
767         messageId: "SVC4524"
768     }
769 #---------SVC4525------------------------------
770     ADDITIONAL_INFORMATION_VALUE_NOT_ALLOWED_CHARACTERS: {
771         code: 400,
772         message: 'Error: Invalid Content. Additional information contains non-english characters.',
773         messageId: "SVC4525"
774     }
775 #---------SVC4526------------------------------
776     RESOURCE_INSTANCE_NOT_FOUND: {
777         code: 404,
778         message: "Error: Requested '%1' resource instance was not found.",
779         messageId: "SVC4526"
780     }
781 #---------SVC4527------------------------------
782     ASDC_VERSION_NOT_FOUND: {
783         code: 500,
784         message: 'Error: ASDC version cannot be displayed.',
785         messageId: "SVC4527"
786     }
787 #---------SVC4528------------------------------
788 # %1-artifact url/artifact label/artifact description/VNF Service Indicator
789     MISSING_DATA: {
790         code: 400,
791         message: "Error: Invalid content. Missing %1.",
792         messageId: "SVC4528"
793     }
794 #---------SVC4529------------------------------
795 # %1-artifact url/artifact label/artifact description/artifact name
796 # %2 - Maximal length of %1
797     EXCEEDS_LIMIT: {
798         code: 400,
799         message: "Error: Invalid Content. %1 exceeds limit of %2 characters.",
800         messageId: "SVC4529"
801     }
802 #---------SVC4530------------------------------
803     ARTIFACT_INVALID_TIMEOUT: {
804         code: 400,
805         message: "Error: Invalid Content. Artifact Timeout should be set to valid positive non-zero number of minutes.",
806         messageId: "SVC4530"
807     }
808 #---------SVC4531------------------------------
809     SERVICE_IS_VNF_CANNOT_BE_CHANGED: {
810         code: 400,
811         message: "Error: VNF Indicator cannot be updated for certified service.",
812         messageId: "SVC4531"
813     }
814  #---------SVC4532------------------------------
815     RESOURCE_INSTANCE_NOT_FOUND_ON_SERVICE: {
816         code: 404,
817         message: "Error: Requested '%1' resource instance was not found on the service '%2.",
818         messageId: "SVC4532"
819     }
820  #---------SVC4533------------------------------
821  # %1 -  "HEAT"/"HEAT_ENV"/"MURANO_PKG"/"YANG_XML"
822     WRONG_ARTIFACT_FILE_EXTENSION: {
823         code: 400,
824         message: "Error: Invalid file extension for %1 artifact type.",
825         messageId: "SVC4533"
826     }
827
828 #---------SVC4534------------------------------
829 # %1 -  "HEAT"/"HEAT_ENV"
830     INVALID_YAML: {
831         code: 400,
832         message: "Error: Uploaded YAML file for %1 artifact is invalid.",
833         messageId: "SVC4534"
834     }
835
836 #---------SVC4535------------------------------
837 # %1 -  "HEAT"
838     INVALID_DEPLOYMENT_ARTIFACT_HEAT: {
839         code: 400,
840         message: "Error: Invalid %1 artifact.",
841         messageId: "SVC4535"
842     }
843 #---------SVC4536------------------------------
844 # %1 - "Resource"/"Service"
845 # %2 -  resource/service name
846 # %3 -  "HEAT"/"HEAT_ENV"/"MURANO_PKG"
847 # %4 -  "HEAT"/"HEAT_ENV"/"MURANO_PKG
848     DEPLOYMENT_ARTIFACT_OF_TYPE_ALREADY_EXISTS: {
849         code: 400,
850         message: "Error: %1 '%2' already has a deployment artifact of %3 type .Please delete or update an existing %4 artifact.",
851         messageId: "SVC4536"
852     }
853
854 #---------SVC4537------------------------------
855     MISSING_HEAT: {
856         code: 400,
857         message: "Error: Missing HEAT artifact. HEAT_ENV artifact cannot be uploaded without corresponding HEAT template.",
858         messageId: "SVC4537"
859     }
860 #---------SVC4538------------------------------
861     MISMATCH_HEAT_VS_HEAT_ENV: {
862         code: 400,
863         message: "Error: Invalid artifact content. Parameter's set in HEAT_ENV '%1' artifact doesn't match the parameters in HEAT '%2' artifact.",
864         messageId: "SVC4538"
865     }
866 #---------SVC4539------------------------------
867     INVALID_RESOURCE_PAYLOAD: {
868         code: 400,
869         message: "Error: Invalid resource payload.",
870         messageId: "SVC4539"
871     }
872 #---------SVC4540------------------------------
873     INVALID_TOSCA_FILE_EXTENSION: {
874         code: 400,
875         message: "Error: Invalid file extension for TOSCA template.",
876         messageId: "SVC4540"
877     }
878 #---------SVC4541------------------------------
879     INVALID_YAML_FILE: {
880         code: 400,
881         message: "Error: Invalid YAML file.",
882         messageId: "SVC4541"
883     }
884 #---------SVC4542------------------------------
885     INVALID_TOSCA_TEMPLATE: {
886         code: 400,
887         message: "Error: Invalid TOSCA template.",
888         messageId: "SVC4542"
889     }
890 #---------SVC4543------------------------------
891     NOT_RESOURCE_TOSCA_TEMPLATE: {
892         code: 400,
893         message: "Error: Imported Service TOSCA template.",
894         messageId: "SVC4543"
895     }
896 #---------SVC4544------------------------------
897     NOT_SINGLE_RESOURCE: {
898         code: 400,
899         message: "Error: Imported TOSCA template should contain one resource definition.",
900         messageId: "SVC4544"
901     }
902 #---------SVC4545------------------------------
903     INVALID_RESOURCE_NAMESPACE: {
904         code: 400,
905         message: "Error: Invalid resource namespace.",
906         messageId: "SVC4545"
907     }
908 #---------SVC4546------------------------------
909     RESOURCE_ALREADY_EXISTS: {
910         code: 400,
911         message: "Error: Imported resource already exists in ASDC Catalog.",
912         messageId: "SVC4546"
913     }
914 #---------SVC4549------------------------------
915     INVALID_RESOURCE_CHECKSUM: {
916         code: 400,
917         message: "Error: Invalid resource checksum.",
918         messageId: "SVC4549"
919     }
920 #---------SVC4550------------------------------
921     #%1  -  Consumer salt
922     INVALID_LENGTH: {
923         code: 400,
924         message: "Error: Invalid %1 length.",
925         messageId: "SVC4550"
926     }
927     #---------SVC4551------------------------------
928     #%1  -  ECOMP User name
929     ECOMP_USER_NOT_FOUND: {
930         code: 404,
931         message: "Error: ECOMP User '%1' was not found.",
932         messageId: "SVC4551"
933     }
934 #---------SVC4552------------------------------
935     CONSUMER_ALREADY_EXISTS: {
936         code: 409,
937         message: "Error: ECOMP User already exists.",
938         messageId: "SVC4552"
939     }
940 #---------SVC4553-----------------------------
941     #%1  -  Consumer name / Consumer password/ Consumer salt
942     INVALID_CONTENT_PARAM: {
943         code: 400,
944         message: "Error: %1 is invalid.",
945         messageId: "SVC4553"
946     }
947     #---------SVC4554------------------------------
948 # %1 - "Resource"/"Service"
949     COMPONENT_ARTIFACT_NOT_FOUND: {
950         code: 404,
951         message: "Error: Requested artifact doesn't belong to specified %1.",
952         messageId: "SVC4554"
953     }
954 #---------SVC4554------------------------------
955 # %1 - "Service name"
956     SERVICE_DEPLOYMENT_ARTIFACT_NOT_FOUND: {
957         code: 403,
958         message: "Error: Requested '%1' service is not ready for certification. Service has to have at least one deployment artifact.",
959         messageId: "SVC4554"
960     }
961 #---------SVC4555------------------------------
962 #%1 - "Resource"/"Service"/"Product"
963 #%2 - "category"
964     COMPONENT_ELEMENT_INVALID_NAME_LENGTH: {
965         code: 400,
966         message: "Error: Invalid %1 %2 name length.",
967         messageId: "SVC4555"
968     }
969 #---------SVC4556------------------------------
970 #%1 - "Resource"/"Service"/"Product"
971 #%2 - "category"
972     COMPONENT_ELEMENT_INVALID_NAME_FORMAT: {
973         code: 400,
974         message: "Error: Invalid %1 %2 name format.",
975         messageId: "SVC4556"
976     }
977 #---------SVC4557------------------------------
978 #%1 - "Resource"/"Service"/"Product"
979 #%2 - "category name"
980     COMPONENT_CATEGORY_ALREADY_EXISTS: {
981         code: 409,
982         message: "Error: %1 category name '%2' already exists.",
983         messageId: "SVC4557"
984     }
985 #---------SVC4558------------------------------
986 # %1 - "service"/"VF"
987 # %2 - "Resource name"
988     VALIDATED_RESOURCE_NOT_FOUND: {
989         code: 403,
990         message: "Error: Submit for Testing is not permitted as your '%1' includes non-validated '%2' resource.",
991         messageId: "SVC4558"
992     }
993 #---------SVC4559------------------------------
994 # %1 - "service"/"VF"
995 # %2 - "Resource name"
996     FOUND_ALREADY_VALIDATED_RESOURCE: {
997         code: 403,
998         message: "Error: Submit for Testing is not permitted as your '%1' includes non-validated '%2' resource. Please use already available validated resource version.",
999         messageId: "SVC4559"
1000     }
1001 #---------SVC4560------------------------------
1002 # %1 - "service"/"VF"
1003 # %2 - "Resource name"
1004     FOUND_LIST_VALIDATED_RESOURCES: {
1005         code: 403,
1006         message: "Error: Submit for Testing is not permitted as your '%1' includes non-validated '%2' resource. Please use one of available validated resource versions.",
1007         messageId: "SVC4560"
1008     }
1009 #---------SVC4561------------------------------
1010 # %1 - "resource"/"product"
1011 # %2 - "category"
1012 # %3 - "category name"
1013     COMPONENT_CATEGORY_NOT_FOUND: {
1014         code: 404,
1015         message: "Error: Requested %1 %2 '%3' was not found.",
1016         messageId: "SVC4561"
1017     }
1018 #---------SVC4562------------------------------
1019 # %1 - "Resource"/"Product"
1020 # %2 - "sub-category name"
1021 # %3 - "category name"
1022     COMPONENT_SUB_CATEGORY_EXISTS_FOR_CATEGORY: {
1023         code: 409,
1024         message: "Error: %1 sub-category '%2' already exists under '%3' category.",
1025         messageId: "SVC4562"
1026     }
1027 #---------SVC4563------------------------------
1028 # %1 - "Product"
1029 # %2 - "grouping name"
1030 # %3 - "sub-category name"
1031     COMPONENT_GROUPING_EXISTS_FOR_SUB_CATEGORY: {
1032         code: 409,
1033         message: "Error: %1 grouping '%2' already exists under '%3' sub-category.",
1034         messageId: "SVC4563"
1035     }
1036 #---------SVC4564------------------------------
1037 # %1 - product name
1038     PRODUCT_NOT_FOUND: {
1039         code: 404,
1040         message: "Error: Requested '%1' product was not found.",
1041         messageId: "SVC4564"
1042     }
1043 #---------SVC4565------------------------------
1044 # %1 - "HEAT"
1045 # %2  - parameter type ("string" , "boolean" , "number")
1046 # %3 -  parameter name
1047     INVALID_HEAT_PARAMETER_VALUE: {
1048         code: 400,
1049         message: "Error: Invalid %1 artifact. Invalid %2 value set for '%3' parameter.",
1050         messageId: "SVC4565"
1051     }
1052 #---------SVC4566------------------------------
1053 # %1 - "HEAT"
1054 # %2  - parameter type ("string" , "boolean" , "number")
1055     INVALID_HEAT_PARAMETER_TYPE: {
1056         code: 400,
1057         message: "Error: Invalid %1 artifact. Unsupported '%2' parameter type.",
1058         messageId: "SVC4566"
1059     }
1060 #---------SVC4567------------------------------
1061 # %1 -  "YANG_XML"
1062     INVALID_XML: {
1063         code: 400,
1064         message: "Error: Uploaded XML file for %1 artifact is invalid.",
1065         messageId: "SVC4567"
1066     }
1067 #---------SVC4567------------------------------
1068 # %1 - "User Name and UserId"
1069 # %2  -"checked-out"/"in-certification"
1070     CANNOT_DELETE_USER_WITH_ACTIVE_ELEMENTS: {
1071         code: 409,
1072         message: "Error: User cannot be deleted. User '%1' has %2 projects.",
1073         messageId: "SVC4567"
1074     }
1075 #---------SVC4568------------------------------
1076 # %1 - "User Name and UserId"
1077 # %2  -"checked-out"/"in-certification"
1078     CANNOT_UPDATE_USER_WITH_ACTIVE_ELEMENTS: {
1079         code: 409,
1080         message: "Error: Role cannot be changed. User '%1' has %2 projects.",
1081         messageId: "SVC4568"
1082     }
1083 #---------SVC4570------------------------------
1084     UPDATE_USER_ADMIN_CONFLICT: {
1085         code: 409,
1086         message: "Error: An administrator is not allowed to change his/her role.",
1087         messageId: "SVC4570"
1088     }
1089 #---------SVC4571------------------------------
1090     SERVICE_CANNOT_CONTAIN_SUBCATEGORY: {
1091         code: 400,
1092         message: "Error: Sub category cannot be defined for service",
1093         messageId: "SVC4571"
1094     }
1095 #---------SVC4572------------------------------
1096 # %1 - "Resource"/"Service"
1097     COMPONENT_TOO_MUCH_CATEGORIES: {
1098         code: 400,
1099         message: "Error: %1 must have only 1 category",
1100         messageId: "SVC4572"
1101     }
1102 #---------SVC4574------------------------------
1103     RESOURCE_TOO_MUCH_SUBCATEGORIES: {
1104         code: 400,
1105         message: "Error: Resource must have only 1 sub category",
1106         messageId: "SVC4574"
1107     }
1108 #---------SVC4575------------------------------
1109     COMPONENT_MISSING_SUBCATEGORY: {
1110         code: 400,
1111         message: "Error: Missing sub category",
1112         messageId: "SVC4575"
1113     }
1114  #---------SVC4576------------------------------
1115 # %1 - "component type"
1116     UNSUPPORTED_ERROR: {
1117         code: 400,
1118         message: "Error : Requested component type %1 is unsupported.",
1119         messageId: "SVC4576"
1120     }
1121     #---------SVC4577------------------------------
1122 # %1 - "resource type"
1123     RESOURCE_CANNOT_CONTAIN_RESOURCE_INSTANCES: {
1124         code: 409,
1125         message: "Error : Resource of type %1 cannot contain resource instances.",
1126         messageId: "SVC4577"
1127     }
1128 #---------SVC4578------------------------------
1129 # %1 - "Resource"/"Service"
1130 # %2 -  resource/service name
1131 # %3 -  "artifact name"
1132     DEPLOYMENT_ARTIFACT_NAME_ALREADY_EXISTS: {
1133         code: 400,
1134         message: "Error: %1 '%2' already has a deployment artifact named '%3'.",
1135         messageId: "SVC4578"
1136     }
1137 #---------SVC4579------------------------------
1138 # %1 - "Category"/"Sub-Category"/"Group"
1139 # %2 -  category/sub-category/grouping name.
1140     INVALID_GROUP_ASSOCIATION: {
1141         code: 400,
1142         message: "Error: Invalid group association. %1 '%2' was not found.",
1143         messageId: "SVC4579"
1144     }
1145 #---------SVC4580------------------------------
1146     EMPTY_PRODUCT_CONTACTS_LIST: {
1147         code: 400,
1148         message: "Error: Invalid content. At least one Product Contact has to be specified.",
1149         messageId: "SVC4580"
1150     }
1151 #---------SVC4581------------------------------
1152 # %1 - UserId
1153     INVALID_PRODUCT_CONTACT: {
1154         code: 400,
1155         message: "Error: Invalid content. User '%1' cannot be set as Product Contact.",
1156         messageId: "SVC4581"
1157     }
1158 #---------SVC4582------------------------------
1159 # %1 - Product
1160 # %2 - "abbreviated"/"full"
1161     MISSING_ONE_OF_COMPONENT_NAMES: {
1162         code: 400,
1163         message: "Error: Invalid content. Missing %1 %2 name.",
1164         messageId: "SVC4582"
1165     }
1166 #---------SVC4583------------------------------
1167 # %1 - "Icon"
1168 # %2 - "resource"/"service"/"product"
1169     COMPONENT_PARAMETER_CANNOT_BE_CHANGED: {
1170         code: 400,
1171         message: "Error: %1 cannot be changed once the %2 is certified.",
1172         messageId: "SVC4583"
1173     }
1174 #---------SVC4584------------------------------
1175 # %1  - service/VF name
1176 # %2 - "service" /"VF"
1177 # %3 -  resource instance origin type
1178 # %4 -  resource instance name
1179 # %5 -  requirement/capability
1180 # %6 -  requirement/capability name
1181 # %7 -  "fulfilled" (for req)/"consumed (for cap)"
1182     REQ_CAP_NOT_SATISFIED_BEFORE_CERTIFICATION: {
1183         code: 403,
1184         message: "Error:  Requested '%1' %2 is not ready for certification.  %3 '%4' has to have %5 '%6' %7.",
1185         messageId: "SVC4584"
1186     }
1187 #---------SVC4585------------------------------
1188     INVALID_OCCURRENCES: {
1189         code: 400,
1190         message: "Error: Invalid occurrences format.",
1191         messageId: "SVC4585"
1192     }
1193 #---------SVC4586------------------------------
1194 #---------SVC4586------------------------------
1195     INVALID_SERVICE_API_URL: {
1196         code: 400,
1197         message: 'Error: Invalid Service API URL. Please check whether your URL has a valid domain extension and does not contain the following characters - #?&@%+;,=$<>~^`\[]{}|"*!',
1198         messageId: "SVC4586"
1199     }
1200 #---------SVC4587------------------------------
1201 # %1  - Data type name
1202     DATA_TYPE_ALREADY_EXIST: {
1203         code: 409,
1204         message: 'Error: Data type %1 already exists.',
1205         messageId: "SVC4587"
1206     }
1207 #---------SVC4588------------------------------
1208 # %1  - Data type name
1209     DATA_TYPE_NOR_PROPERTIES_NEITHER_DERIVED_FROM: {
1210         code: 400,
1211         message: 'Error: Invalid Data type %1. Data type must have either a valid derived from declaration or at least one valid property',
1212         messageId: "SVC4588"
1213     }
1214 #---------SVC4589------------------------------
1215 # %1  - Data type name
1216     DATA_TYPE_PROPERTIES_CANNOT_BE_EMPTY: {
1217         code: 400,
1218         message: "Error: Invalid Data type %1. 'properties' parameter cannot be empty if provided.",
1219         messageId: "SVC4589"
1220     }
1221 #---------SVC4590------------------------------
1222 # %1  - Property type name
1223 # %2  - Property name
1224     INVALID_PROPERTY_TYPE: {
1225         code: 400,
1226         message: "Error: Invalid Property type %1 in property %2.",
1227         messageId: "SVC4590"
1228     }
1229 #---------SVC4591------------------------------
1230 # %1  - Property inner type
1231 # %2  - Property name
1232     INVALID_PROPERTY_INNER_TYPE: {
1233         code: 400,
1234         message: "Error: Invalid property inner type %1, in property %2",
1235         messageId: "SVC4591"
1236     }
1237 #---------SVC4592------------------------------
1238 # %1  - component instance name
1239 # %2  - "resource instance"/"service instance"
1240     COMPONENT_INSTANCE_NOT_FOUND: {
1241         code: 404,
1242         message: "Error: Requested '%1' %2 was not found.",
1243         messageId: "SVC4592"
1244     }
1245 #---------SVC4593------------------------------
1246 # %1 - component instance name
1247 # %2 - "resource instance"/"service instance"
1248 # %3 - "resource/"service"/"product"
1249 # %4 - container name
1250     COMPONENT_INSTANCE_NOT_FOUND_ON_CONTAINER: {
1251         code: 404,
1252         message: "Error: Requested '%1' %2 was not found on the %3 '%4'.",
1253         messageId: "SVC4593"
1254     }
1255 #---------SVC4594------------------------------
1256 #%1 - requirement / capability
1257 #%2 - requirement name
1258     IMPORT_DUPLICATE_REQ_CAP_NAME: {
1259         code: 400,
1260         message: "Error: Imported TOSCA template contains more than one %1 named '%2'.",
1261         messageId: "SVC4594"
1262     }
1263 #---------SVC4595------------------------------
1264 #%1 - requirement / capability
1265 #%2 - requirement name
1266 #%3 - parent containing the requirement
1267     IMPORT_REQ_CAP_NAME_EXISTS_IN_DERIVED: {
1268         code: 400,
1269         message: "Error: Imported TOSCA template contains %1 '%2' that is already defined by derived template %3.",
1270         messageId: "SVC4595"
1271     }
1272 #---------SVC4596------------------------------
1273 # %1  - Data type name
1274     DATA_TYPE_DERIVED_IS_MISSING: {
1275         code: 400,
1276         message: "Error: Invalid Content. The ancestor data type %1 cannot be found in the system.",
1277         messageId: "SVC4596"
1278     }
1279 #---------SVC4597------------------------------
1280 # %1  - Data type name
1281 # %2  - Property names
1282     DATA_TYPE_PROPERTY_ALREADY_DEFINED_IN_ANCESTOR: {
1283         code: 400,
1284         message: "Error: Invalid Content. The data type %1 contains properties named %2 which are already defined in one of its ancestors.",
1285         messageId: "SVC4597"
1286     }
1287 #---------SVC4598------------------------------
1288 # %1  - Data type name
1289     DATA_TYPE_DUPLICATE_PROPERTY: {
1290         code: 400,
1291         message: "Error: Invalid Content. The data type %1 contains duplicate property.",
1292         messageId: "SVC4598"
1293     }
1294 #---------SVC4599------------------------------
1295 # %1  - Data type name
1296 # %2  - Property names
1297     DATA_TYPE_PROEPRTY_CANNOT_HAVE_SAME_TYPE_OF_DATA_TYPE: {
1298         code: 400,
1299         message: "Error: Invalid Content. The data type %1 contains properties %2 which their type is this data type.",
1300         messageId: "SVC4599"
1301     }
1302 #---------SVC4600------------------------------
1303 # %1  - Data type name
1304     DATA_TYPE_CANNOT_HAVE_PROPERTIES: {
1305         code: 400,
1306         message: "Error: Invalid Content. The data type %1 cannot have properties since it is of type scalar",
1307         messageId: "SVC4600"
1308     }
1309 #---------SVC4601------------------------------
1310     NOT_TOPOLOGY_TOSCA_TEMPLATE: {
1311         code: 400,
1312         message: "Error: TOSCA yaml file %1 cannot be modeled to VF as it does not contain 'topology_template.",
1313         messageId: "SVC4601"
1314     }
1315 #---------SVC4602--------------------------------
1316 # %1 - yaml file name
1317 # %2 - node_template label
1318 # %3 - node_template type
1319     INVALID_NODE_TEMPLATE: {
1320         code: 400,
1321         message: "Error: TOSCA yaml file '%1' contains node_template '%2' of type '%3' that does not represent existing VFC/CP/VL",
1322         messageId: "SVC4602"
1323     }
1324 #---------SVC4603------------------------------
1325 # %1 - component type
1326 # %2 - component name
1327 # %3 - state
1328     ILLEGAL_COMPONENT_STATE: {
1329         code: 403,
1330         message: "Error: Component instance of %1 can not be created because the component '%2' is in an illegal state %3.",
1331         messageId: "SVC4603"
1332     }
1333 #---------SVC4604------------------------------
1334 # %1 - csar file name
1335     CSAR_INVALID: {
1336         code: 400,
1337         message: "Error: TOSCA CSAR '%1' is invalid. 'TOSCA-Metadata/Tosca.meta' file must be provided.",
1338         messageId: "SVC4604"
1339     }
1340 #---------SVC4605------------------------------
1341 # %1 - csar file name
1342     CSAR_INVALID_FORMAT: {
1343         code: 400,
1344         message: "Error: TOSCA CSAR '%1' is invalid. Invalid 'TOSCA-Metadata/Tosca.meta' file format.",
1345         messageId: "SVC4605"
1346     }
1347 #---------SVC4606------------------------------
1348 # %1 - property name
1349 # %2 - property type
1350 # %3 - property innerType
1351 # %4 - default value is
1352     INVALID_COMPLEX_DEFAULT_VALUE: {
1353         code: 400,
1354         message: "Error: Invalid default value of property %1. Data type is %2 with inner type %3 and default value found is %4.",
1355         messageId: "SVC4606"
1356     }
1357 #---------SVC4607------------------------------
1358 # %1 - csar file name
1359     CSAR_NOT_FOUND: {
1360         code: 400,
1361         message: "Error: TOSCA CSAR '%1' is not found.",
1362         messageId: "SVC4607"
1363     }
1364 #---------SVC4608------------------------------
1365 # %1 - artifact name
1366 # %2 - component type
1367 # %3 - actual component type
1368     MISMATCH_BETWEEN_ARTIFACT_TYPE_AND_COMPONENT_TYPE: {
1369         code: 400,
1370         message: "Error: Artifact %1 is only compatible with component of type %2, but component type is %3.",
1371         messageId: "SVC4608"
1372     }
1373
1374 #---------SVC4609------------------------------
1375 # %1 -  "INVALID_JSON"
1376     INVALID_JSON: {
1377         code: 400,
1378         message: "Error: Uploaded JSON file for %1 artifact is invalid.",
1379         messageId: "SVC4609"
1380     }
1381 #---------SVC4610------------------------------
1382 # %1 - csar file name
1383 # %2 - missing file name
1384     YAML_NOT_FOUND_IN_CSAR: {
1385         code: 400,
1386         message: "Error - TOSCA CSAR %1 is invalid. TOSCA-Metadata/Tosca.meta refers to file %2 that is not provided.",
1387         messageId: "SVC4610"
1388     }
1389 #---------SVC4611------------------------------
1390 # %1 - group name
1391     GROUP_MEMBER_EMPTY: {
1392         code: 400,
1393         message: "Error: Invalid Content. Group %1 member list was provided but does not have values",
1394         messageId: "SVC4611"
1395     }
1396 #---------SVC4612------------------------------
1397 # %1  - group name
1398     GROUP_TYPE_ALREADY_EXIST: {
1399         code: 409,
1400         message: 'Error: Group type %1 already exists.',
1401         messageId: "SVC4612"
1402     }
1403 #---------SVC4613------------------------------
1404 # %1 - group name
1405 # %2 - VF name(component name)
1406 # %3 - actual component type [VF]
1407     GROUP_ALREADY_EXIST: {
1408         code: 409,
1409         message: "Error: Group with name '%1' already exists in %2 %3.",
1410         messageId: "SVC4613"
1411     }
1412 #---------SVC4614------------------------------
1413 # %1 - group type
1414     GROUP_TYPE_IS_INVALID: {
1415         code: 400,
1416         message: "Error: Invalid content. Group type %1 does not exist",
1417         messageId: "SVC4614"
1418     }
1419 #---------SVC4615------------------------------
1420 # %1 - group name
1421     GROUP_MISSING_GROUP_TYPE: {
1422         code: 400,
1423         message: "Error: Invalid Content. Missing Group Type for group '%1'",
1424         messageId: "SVC4615"
1425     }
1426 #---------SVC4616------------------------------
1427 # %1 - member name
1428 # %2 - group name
1429 # %3 - VF name
1430 # %4 - component type [VF ]
1431     GROUP_INVALID_COMPONENT_INSTANCE: {
1432         code: 400,
1433         message: "Error: Member '%1' listed in group '%2' is not part of '%3' %4.",
1434         messageId: "SVC4616"
1435     }
1436 #---------SVC4617------------------------------
1437 # %1 - member name
1438 # %2 - group name
1439 # %3 - group type
1440     GROUP_INVALID_TOSCA_NAME_OF_COMPONENT_INSTANCE: {
1441         code: 400,
1442         message: "Error: member %1 listed in group %2 is not part of allowed members of group type %3.",
1443         messageId: "SVC4617"
1444     }
1445 #---------SVC4618------------------------------
1446 # %1 - missing file name
1447 # %2 - csar file name
1448     ARTIFACT_NOT_FOUND_IN_CSAR: {
1449         code: 400,
1450         message: "Error: artifact %1 is defined in CSAR %2 manifest but is not provided",
1451         messageId: "SVC4618"
1452     }
1453 #---------SVC4619------------------------------
1454 # %1 - artifact name
1455 # %2 - artifact type
1456 # %3 - existing artifact type
1457     ARTIFACT_ALRADY_EXIST_IN_DIFFERENT_TYPE_IN_CSAR: {
1458         code: 400,
1459         message: "Error: artifact %1 in type %2 already exists in type %3.",
1460         messageId: "SVC4619"
1461     }
1462 #---------SVC4620------------------------------
1463     FAILED_RETRIVE_ARTIFACTS_TYPES: {
1464         code: 400,
1465         message: "Error: Failed to retrieve list of suported artifact types.",
1466         messageId: "SVC4620"
1467     }
1468 #---------SVC4621------------------------------
1469 # %1 - artifact name
1470 # %2 - master
1471     ARTIFACT_ALRADY_EXIST_IN_MASTER_IN_CSAR: {
1472         code: 400,
1473         message: "Error: artifact %1 already exists in master %2 .",
1474         messageId: "SVC4621"
1475     }
1476 #---------SVC4622------------------------------
1477 # %1 - artifact name
1478 # %2 - artifact type
1479 # %3 - master name
1480 # %4 - master type
1481     ARTIFACT_NOT_VALID_IN_MASTER: {
1482         code: 400,
1483         message: "Error: artifact %1 in type %2 can not be exists under master %3 in type %4.",
1484         messageId: "SVC4622"
1485     }
1486 #---------SVC4623------------------------------
1487 # %1 - artifact name
1488 # %2 - artifact type
1489 # %3 - env name
1490 # %4 - existing env
1491     ARTIFACT_NOT_VALID_ENV: {
1492         code: 400,
1493         message: "Error: Artifact %1 in type %2 with env %3 already exists with another env %4",
1494         messageId: "SVC4623"
1495     }
1496 #---------SVC4624------------------------------
1497 # %1 - groups names
1498 # %2 - VF name
1499 # %3 - component type [VF ]
1500     GROUP_IS_MISSING: {
1501         code: 400,
1502         message: "Error: Invalid Content. The groups '%1' cannot be found under %2 %3.",
1503         messageId: "SVC4624"
1504     }
1505 #---------SVC4625------------------------------
1506 # %1 - groups name
1507     GROUP_ARTIFACT_ALREADY_ASSOCIATED: {
1508         code: 400,
1509         message: "Error: Invalid Content. Artifact already associated to group '%1'.",
1510         messageId: "SVC4625"
1511     }
1512 #---------SVC4626------------------------------
1513 # %1 - groups name
1514     GROUP_ARTIFACT_ALREADY_DISSOCIATED: {
1515         code: 400,
1516         message: "Error: Invalid Content. Artifact already dissociated from group '%1'.",
1517         messageId: "SVC4626"
1518     }
1519 #---------SVC4627------------------------------
1520 # %1 - property name
1521 # %2 - group name
1522 # %3 - group type name
1523     GROUP_PROPERTY_NOT_FOUND: {
1524         code: 400,
1525         message: "Error: property %1 listed in group %2 is not exist in group type %3.",
1526         messageId: "SVC4627"
1527     }
1528 #---------SVC4628------------------------------
1529 # %1 - csarUUID
1530 # %2 - VF name
1531     VSP_ALREADY_EXISTS: {
1532         code: 400,
1533         message: "Error: The VSP with UUID %1 was already imported for VF %2. Please select another or update the existing VF.",
1534         messageId: "SVC4628"
1535     }
1536 #---------SVC4629------------------------------
1537 # %1 - VF name
1538     MISSING_CSAR_UUID: {
1539         code: 400,
1540         message: "Error: The Csar UUID or payload name is missing for VF %1.",
1541         messageId: "SVC4629"
1542     }
1543 #---------SVC4630------------------------------
1544 # %1 - VF name
1545 # %2 - new csarUUID
1546 # %3 - old csarUUID
1547     RESOURCE_LINKED_TO_DIFFERENT_VSP: {
1548         code: 400,
1549         message: "Error: Resource %1 cannot be updated using CsarUUID %2 since the resource is linked to a different VSP with csarUUID %3.",
1550         messageId: "SVC4630"
1551     }
1552 #---------SVC4631------------------------------
1553 # %1  - policy name
1554     POLICY_TYPE_ALREADY_EXIST: {
1555         code: 409,
1556         message: "Error: Policy type %1 already exists.",
1557         messageId: "SVC4631"
1558     }
1559 #---------SVC4632------------------------------
1560 # %1 - target name
1561 # %2 - policy type name
1562     TARGETS_NON_VALID: {
1563         code: 400,
1564         message: "Error: target %1 listed in policy type %2 is not a group or resource.",
1565         messageId: "SVC4632"
1566     }
1567 #---------SVC4633------------------------------
1568 # %1 - policy name
1569     TARGETS_EMPTY: {
1570         code: 400,
1571         message: "Error: Invalid Content. Policy %1 target list was provided but does not have values",
1572         messageId: "SVC4633"
1573     }
1574 #---------SVC4634------------------------------
1575     DATA_TYPE_CANNOT_BE_EMPTY: {
1576         code: 500,
1577         message: "Error: Data types are empty. Please import the data types.",
1578         messageId: "SVC4634"
1579     }
1580 #---------SVC4635------------------------------
1581 # %1 - csar uuid
1582     RESOURCE_FROM_CSAR_NOT_FOUND: {
1583         code: 400,
1584         message: "Error: resource from csar uuid %1 not found",
1585         messageId: "SVC4635"
1586     }
1587 #---------SVC4636------------------------------
1588 # %1 - Data type name
1589     DATA_TYPE_CANNOT_BE_UPDATED_BAD_REQUEST: {
1590         code: 400,
1591         message: 'Error: Data type %1 cannot be upgraded. The new data type does not contain old properties or the type of one of the properties has been changed.',
1592         messageId: "SVC4636"
1593     }
1594 #-----------SVC4637---------------------------
1595 #%1 - attribute name
1596     ATTRIBUTE_NOT_FOUND: {
1597         code: 404,
1598         message: "Error: Requested '%1' attribute was not found.",
1599         messageId: "SVC4637"
1600     }
1601 #-----------SVC4638---------------------------
1602 #%1 - attribute name
1603     ATTRIBUTE_ALREADY_EXIST: {
1604         code: 409,
1605         message: "Error: Attribute with '%1' name already exists.",
1606         messageId: "SVC4638"
1607     }
1608 #-----------SVC4639---------------------------
1609 #%1 - property name
1610     PROPERTY_NAME_ALREADY_EXISTS: {
1611         code: 409,
1612         message: "Error: Property with '%1' name and different type already exists.",
1613         messageId: "SVC4639"
1614     }
1615 #-----------SVC4640---------------------------
1616 #%1 - property name
1617     INVALID_PROPERTY: {
1618         code: 409,
1619         message: "Error: Invalid property received.",
1620         messageId: "SVC4640"
1621     }
1622 #---------SVC4641-----------------------------
1623 #%1 - invalid filter
1624 #%2 - valid filters
1625     INVALID_FILTER_KEY: {
1626         code: 400,
1627         message: "Error: The filter %1 is not applicable. Please use one of the following filters: %2",
1628         messageId: "SVC4641"
1629     }
1630 #---------SVC4642-----------------------------
1631 #%1 - asset type
1632 #%2 - filter
1633     NO_ASSETS_FOUND: {
1634         code: 404,
1635         message: "No %1 were found to match criteria %2",
1636         messageId: "SVC4642"
1637     }
1638 #---------SVC4643------------------------------
1639 # %1 - "Resource"/"Product"
1640 # %2 - "sub-category name"
1641 # %3 - "category name"
1642     COMPONENT_SUB_CATEGORY_NOT_FOUND_FOR_CATEGORY: {
1643         code: 404,
1644         message: "Error: %1 sub-category '%2' not found under category '%3'.",
1645         messageId: "SVC4643"
1646     }
1647 #---------SVC4644------------------------------
1648 # %1 - Format
1649     CORRUPTED_FORMAT: {
1650         code: 400,
1651         message: "Error: %1 format is corrupted.",
1652         messageId: "SVC4644"
1653     }
1654 #---------SVC4645------------------------------
1655 # %1 - "groupType"
1656     INVALID_VF_MODULE_TYPE: {
1657         code: 400,
1658         message: "Error: Invalid group type '%1' (should be VfModule).",
1659         messageId: "SVC4645"
1660     }
1661 #---------SVC4646------------------------------
1662 # %1 - "groupName"
1663     INVALID_VF_MODULE_NAME: {
1664         code: 400,
1665         message: "Error: Invalid Content. Group name '%1' contains invalid characters",
1666         messageId: "SVC4646"
1667     }
1668
1669 #---------SVC4647------------------------------
1670 # %1 - "modifiedName"
1671     INVALID_VF_MODULE_NAME_MODIFICATION: {
1672         code: 400,
1673         message: "Error: Invalid VF Module name modification, can not modify '%1'",
1674         messageId: "SVC4647"
1675     }
1676 #---------SVC4648------------------------------
1677 # %1 - "inputId"
1678 # %2 - "componentId"
1679     INPUT_IS_NOT_CHILD_OF_COMPONENT: {
1680         code: 400,
1681         message: "Error: Input id: '%1' is not child of component id: '%2'",
1682         messageId: "SVC4648"
1683     }
1684 #---------SVC4649------------------------------
1685 # %1 - "groupName"
1686     GROUP_HAS_CYCLIC_DEPENDENCY: {
1687         code: 400,
1688         message: "Error: The group '%1' has cyclic dependency",
1689         messageId: "SVC4649"
1690     }
1691 #---------SVC4650------------------------------
1692 # %1 - "Component Type"
1693 # %2 - <ServiceName>
1694 # %3 - error description
1695     AAI_ARTIFACT_GENERATION_FAILED: {
1696         code: 500,
1697         message: "Error: %1 %2 automatic generation of artifacts failed. Description: %3",
1698         messageId: "SVC4650"
1699     }
1700 #---------SVC4651------------------------------
1701     PARENT_RESOURCE_DOES_NOT_EXTEND: {
1702         code: 400,
1703         message: "Error: Once resource is certified, derived_from can be changed only to a sibling",
1704         messageId: "SVC4651"
1705     }
1706 #---------SVC4652------------------------------
1707 # %1 - resource/service
1708     COMPONENT_INVALID_SUBCATEGORY: {
1709         code: 400,
1710         message: "Error: Invalid Content. Invalid %1 sub category.",
1711         messageId: "SVC4652"
1712     }
1713 #---------SVC4653------------------------------
1714 # %1 - group instance uniqueId
1715 # %2 - service uniqueId
1716     GROUP_INSTANCE_NOT_FOUND_ON_COMPONENT_INSTANCE: {
1717         code: 404,
1718         message: "Error: Requested group instance %1 was not found on component %2.",
1719         messageId: "SVC4653"
1720     }
1721 #---------SVC4654------------------------------
1722 # %1 - group property name
1723 # %2 - valid min limit value
1724 # %3 - valid max limit value
1725     INVALID_GROUP_MIN_MAX_INSTANCES_PROPERTY_VALUE: {
1726         code: 400,
1727         message: "Error: Value of %1 must be not higher than %2, and not lower than %3.",
1728         messageId: "SVC4654"
1729     }
1730 #---------SVC4655------------------------------
1731 # %1 - group property name
1732 # %2 - valid min limit value
1733 # %3 - valid max limit value
1734     INVALID_GROUP_INITIAL_COUNT_PROPERTY_VALUE: {
1735         code: 400,
1736         message: "Error: Value of %1 must be between %2 and %3.",
1737         messageId: "SVC4655"
1738     }
1739 #---------SVC4656------------------------------
1740 # %1 - group property name
1741 # %2 - lower/higher
1742 # %3 - valid max/min value
1743     INVALID_GROUP_PROPERTY_VALUE_LOWER_HIGHER: {
1744         code: 400,
1745         message: "Error: Value of %1 must be %2 or equals to %3.",
1746         messageId: "SVC4656"
1747     }
1748 #---------SVC4657------------------------------
1749 # %1 - certificationRequest / startTesting
1750     RESOURCE_VFCMT_LIFECYCLE_STATE_NOT_VALID: {
1751         code: 400,
1752         message: "Error - Lifecycle state %1 is not valid for resource of type VFCMT",
1753         messageId: "SVC4657"
1754     }
1755 #---------SVC4658------------------------------
1756 # %1 – asset type [service / resource ]
1757 # %2 – main asset uuid
1758 # %3 – not found asset type [service / resource]
1759 # %4 – not found asset name
1760     ASSET_NOT_FOUND_DURING_CSAR_CREATION: {
1761         code: 400,
1762         message: "Error: CSAR packaging failed for %1 %2. %3 %4 was not found",
1763         messageId: "SVC4658"
1764     }
1765 #---------SVC4659------------------------------
1766 # %1 – asset type [service / resource ]
1767 # %2 – main asset uuid
1768 # %3 – Artifact name
1769 # %4 – Artifact uuid
1770     ARTIFACT_PAYLOAD_NOT_FOUND_DURING_CSAR_CREATION: {
1771         code: 400,
1772         message: "Error: CSAR packaging failed for %1 %2. Artifact %3 [%4] was not found",
1773         messageId: "SVC4659"
1774     }
1775 #---------SVC4660------------------------------
1776 # %1 - assetType
1777 # %2 - matching generic node type name
1778     GENERIC_TYPE_NOT_FOUND: {
1779         code: 404,
1780         message: "Creation of %1 failed. Generic type %2 was not found",
1781         messageId: "SVC4660"
1782     }
1783 #---------SVC4661------------------------------
1784 # %1 - assetType
1785 # %2 - matching generic node type name
1786     TOSCA_SCHEMA_FILES_NOT_FOUND: {
1787         code: 400,
1788         message: "Error: CSAR packaging failed. TOSCA schema files for SDC-Version: %1 and Conformance-Level %2 were not found",
1789         messageId: "SVC4661"
1790     }
1791 #---------SVC4662------------------------------
1792 # %1 - file name
1793 # %2 - parser error
1794     TOSCA_PARSE_ERROR: {
1795         code: 400,
1796         message: "Error: Invalid TOSCA template in file %1. %2",
1797         messageId: "SVC4662"
1798     }
1799 #---------SVC4663------------------------------
1800 # %1 - max length
1801     RESOURCE_VENDOR_MODEL_NUMBER_EXCEEDS_LIMIT: {
1802         code: 400,
1803         message: "Error: Invalid Content. Resource vendor model number exceeds limit of %1 characters.",
1804         messageId: "SVC4663"
1805     }
1806 #---------SVC4664------------------------------
1807     INVALID_RESOURCE_VENDOR_MODEL_NUMBER: {
1808         code: 400,
1809         message: 'Error: Invalid Content. Resource vendor model number is not allowed to contain characters like <>:"\/|?* and space characters other than regular space.',
1810         messageId: "SVC4664"
1811     }
1812 #---------SVC4665------------------------------
1813 # %1 - max length
1814     SERVICE_TYPE_EXCEEDS_LIMIT: {
1815         code: 400,
1816         message: "Error: Invalid Content. Service type exceeds limit of %1 characters.",
1817         messageId: "SVC4665"
1818     }
1819 #---------SVC4666------------------------------
1820     INVALID_SERVICE_TYPE: {
1821         code: 400,
1822         message: 'Error: Invalid Content. Serivce type is not allowed to contain characters like <>:"\/|?* and space characters other than regular space.',
1823         messageId: "SVC4666"
1824     }
1825 #---------SVC4667------------------------------
1826 # %1 - max length
1827     SERVICE_ROLE_EXCEEDS_LIMIT: {
1828         code: 400,
1829         message: "Error: Invalid Content. Service role exceeds limit of %1 characters.",
1830         messageId: "SVC4667"
1831     }
1832 #---------SVC4668------------------------------
1833     INVALID_SERVICE_ROLE: {
1834         code: 400,
1835         message: 'Error: Invalid Content. Service role is not allowed to contain characters like <>:"\/|?* and space characters other than regular space.',
1836         messageId: "SVC4668"
1837     }
1838
1839 #---------SVC4669-----------------------------
1840     INVALID_RESOURCE_TYPE: {
1841         code: 400,
1842         message: "Error: Invalid resource type.",
1843         messageId: "SVC4669"
1844     }
1845 #---------SVC4670------------------------------
1846     ARTIFACT_NAME_INVALID: {
1847         code: 400,
1848         message: "Error: Artifact name is invalid.",
1849         messageId: "SVC4670"
1850     }
1851 #---------SVC4671------------------------------ 
1852 # %1 - VSP name
1853 # %2 - VFC name
1854     CFVC_LOOP_DETECTED: {
1855         code: 400,
1856         message: 'Error: VSP %1 cannot be imported. The VSP contains internal loop in VFC %2',
1857         messageId: "SVC4671"
1858     }
1859 #---------SVC4672------------------------------ 
1860 # %1 - capability uniqueId
1861 # %2 - instance uniqueId
1862 # %3 - container uniqueId
1863     CAPABILITY_OF_INSTANCE_NOT_FOUND_ON_CONTAINER: {
1864         code: 404,
1865         message: "Error: Requested capability %1 of instance %2 was not found on the container %3.",
1866         messageId: "SVC4672"
1867     }
1868 #---------SVC4673------------------------------ 
1869 # %1 - requirement uniqueId
1870 # %2 - instance uniqueId
1871 # %3 - container uniqueId
1872     REQUIREMENT_OF_INSTANCE_NOT_FOUND_ON_CONTAINER: {
1873         code: 404,
1874         message: "Error: Requested requirement %1 of instance %2 was not found on the container %3.",
1875         messageId: "SVC4673"
1876     }
1877 #---------SVC4674-----------------------------     
1878 # %1 - relation Id
1879 # %2 - container uniqueId
1880     RELATION_NOT_FOUND: {
1881         code: 404,
1882         message: "Error: Requested relation %1 was not found on the container %2.",
1883         messageId: "SVC4674"
1884     }
1885
1886
1887 #---------SVC4675------------------------------
1888     INVALID_SERVICE_STATE: {
1889         code: 409,
1890         message: "Service state is invalid for this action",
1891         messageId: "SVC4675"
1892     }
1893
1894 #---------SVC4676------------------------------
1895     INVALID_RESPONSE_FROM_PROXY: {
1896         code: 502,
1897         message: "Error: The server was acting as a gateway or proxy and received an invalid response from the upstream server",
1898         messageId: "SVC4676"
1899     }
1900
1901 #---------SVC4677------------------------------
1902     API_RESOURCE_NOT_FOUND: {
1903         code: 404,
1904         message: "Error: Requested '%1' was not found.",
1905         messageId: "SVC4677"
1906     }
1907
1908 #---------SVC4678------------------------------
1909     BAD_REQUEST_MISSING_RESOURCE: {
1910         code: 400,
1911         message: "Error: The required resource name/id  is missing in the request",
1912         messageId: "SVC4678"
1913     }
1914 #---------SVC4679------------------------------
1915 # %1 forwarding path name maximum length
1916     FORWARDING_PATH_NAME_MAXIMUM_LENGTH: {
1917         code: 400,
1918         message: "Forwarding path name too long, , maximum allowed 200 characters : '%1'.",
1919         messageId: "SVC4679"
1920     }
1921 #---------SVC4680------------------------------
1922 # %1 Forwarding path name already in use
1923     FORWARDING_PATH_NAME_ALREADY_IN_USE: {
1924         code: 400,
1925         message: "Forwarding path name already in use : '%1'.",
1926         messageId: "SVC4680"
1927     }
1928 #---------SVC4681------------------------------
1929 # %1 Forwarding path name empty
1930     FORWARDING_PATH_NAME_EMPTY: {
1931         code: 400,
1932         message: "Forwarding Path Name can't be empty .",
1933         messageId: "SVC4681"
1934     }
1935 #---------SVC4682------------------------------
1936 # %1 - resource uniqueId
1937 # %2 - resource component type
1938     RESOURCE_CANNOT_CONTAIN_POLICIES: {
1939         code: 400,
1940         message: "Error: The resource %1 type of %2 cannot contain policies.",
1941         messageId: "SVC4682"
1942     }
1943 #---------SVC4683------------------------------
1944 # %1 - policy uniqueId
1945 # %2 - component uniqueId
1946     POLICY_NOT_FOUND_ON_CONTAINER: {
1947         code: 404,
1948         message: "Error: Requested policy %1 was not found on the container %2.",
1949         messageId: "SVC4683"
1950 }
1951 #---------SVC4684------------------------------
1952 # %1 - policy name
1953     INVALID_POLICY_NAME: {
1954         code: 400,
1955         message: "Error: Invalid policy name %1 received.",
1956         messageId: "SVC4684"
1957     }
1958 #---------SVC4685------------------------------
1959 # %1 - policy name
1960     POLICY_NAME_ALREADY_EXIST: {
1961         code: 409,
1962         message: "Error: The policy with the name %1 already exists.",
1963         messageId: "SVC4685"
1964     }
1965 #---------SVC4686------------------------------
1966 # %1 - policy name
1967     POLICY_TARGET_DOES_NOT_EXIST: {
1968         code: 400,
1969         message: "Error: The targets %1 are not valid, all targets have to be on the topologyTemplate.",
1970         messageId: "SVC4686"
1971     }
1972 #---------SVC4687------------------------------
1973 # %1 - policy type
1974 # %2 - component type
1975     EXCLUDED_POLICY_TYPE: {
1976         code: 400,
1977         message: "Error: The policy of the type %1 excluded to add to a component of the type %2.",
1978         messageId: "SVC4687"
1979     }
1980     #---------SVC4688------------------------------
1981 # %1 - group type
1982 # %2 - component type
1983     GROUP_TYPE_ILLEGAL_PER_COMPONENT: {
1984         code: 400,
1985         message: "Error: group type %1 not permitted in component of type %2",
1986         messageId: "SVC4688"
1987     }
1988     #---------SVC4689------------------------------
1989 # %1 - group type
1990 # %2 - component type
1991     POLICY_TARGET_TYPE_DOES_NOT_EXIST: {
1992         code: 400,
1993         message: "Error: The target types %1 are not valid.",
1994         messageId: "SVC4689"
1995     }
1996
1997 #---------SVC4690------------------------------
1998 # %1 forwarding path protocol maximum length
1999     FORWARDING_PATH_PROTOCOL_MAXIMUM_LENGTH: {
2000         code: 400,
2001         message: "Forwarding path protocol too long, , maximum allowed 200 characters : '%1'.",
2002         messageId: "SVC4690"
2003     }
2004
2005 #---------SVC4691------------------------------
2006 # %1 forwarding path destination port maximum length
2007     FORWARDING_PATH_DESTINATION_PORT_MAXIMUM_LENGTH: {
2008         code: 400,
2009         message: "Forwarding path destination port too long, , maximum allowed 200 characters : '%1'.",
2010         messageId: "SVC4691"
2011     }
2012
2013 #---------POL4692------------------------------
2014     MISSING_OLD_COMPONENT_INSTANCE: {
2015         code: 400  ,
2016         message: "Error: Missing 'componentInstanceId' HTTP param.",
2017         messageId: "POL4692"
2018     }
2019
2020 #---------POL4693------------------------------
2021     MISSING_NEW_COMPONENT_INSTANCE: {
2022         code: 400  ,
2023         message: "Error: Missing 'newComponentInstanceId' HTTP param.",
2024         messageId: "POL4693"
2025     }
2026
2027 #---------SVC4694------------------------------
2028 # %1 External Reference Value
2029     EXT_REF_NOT_FOUND: {
2030         code: 404,
2031         message: "Error: External Reference '%1' was not found.",
2032         messageId: "SVC4694"
2033     }
2034 #---------SVC4695-----------------------------
2035 # %1 - Interface operation type
2036     INTERFACE_OPERATION_TYPE_ALREADY_IN_USE: {
2037       code: 400,
2038       message: "Error: Interface Operation type %1 already in use",
2039       messageId: "SVC4695"
2040     }
2041 #---------SVC4696-----------------------------
2042 # %1 - workflow operation type
2043     INTERFACE_OPERATION_TYPE_INVALID: {
2044       code: 400,
2045       message: "Error: Interface Operation type %1 is Invalid, Operation type should not contain
2046                         Special character, space and  should not be greater than 200 characters ",
2047       messageId: "SVC4696"
2048     }
2049 #---------SVC4697-----------------------------
2050     INTERFACE_OPERATION_TYPE_MANDATORY: {
2051       code: 404,
2052       message: "Error: Interface Operation type is mandatory, Operation type can't be empty",
2053       messageId: "SVC4697"
2054     }
2055 #---------SVC4698-----------------------------
2056 # %1 - workflow operation description
2057     INTERFACE_OPERATION_DESCRIPTION_MAX_LENGTH: {
2058       code: 400,
2059       message: "Error: Interface Operation description %1 is invalid, maximum 200 characters allowed",
2060       messageId: "SVC4698"
2061     }
2062 #---------SVC4699-----------------------------
2063     INTERFACE_OPERATION_INPUT_NAME_INVALID: {
2064       code: 400,
2065       message: "Error: Interface Operation input parameter names %1 are invalid ,Input parameters name should be unique",
2066       messageId: "SVC4699"
2067     }
2068 #---------SVC4700-----------------------------
2069     INTERFACE_OPERATION_OUTPUT_NAME_INVALID: {
2070       code: 400,
2071       message: "Error: Interface Operation output parameters invalid, should be unique and mandatory",
2072       messageId: "SVC4700"
2073     }
2074 #---------SVC4701-----------------------------
2075 # %1 - resource Id
2076     INTERFACE_OPERATION_NOT_FOUND: {
2077       code: 404,
2078       message: "Error: Interface operations not found in the resource %1",
2079       messageId: "SVC4701"
2080     }
2081 #---------SVC46702-----------------------------
2082     INTERFACE_OPERATION_NOT_DELETED: {
2083       code: 404,
2084       message: "Error: Failed to delete interface operation.",
2085       messageId: "SVC4702"
2086     }