11ce71d48869fcd03660c934dd5634d85c4dcea7
[sdc.git] / catalog-be / src / test / resources / config / catalog-be / 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     #---------POL5005------------------------------
56     SESSION_EXPIRED: {
57         code: 403  ,
58         message: "Your session has expired. Please close the SDC tab and re-enter the SDC application.",
59         messageId: "POL5005"
60     }
61     #---------SVC4000-----------------------------
62     INVALID_CONTENT: {
63         code: 400,
64         message: "Error: Invalid content.",
65         messageId: "SVC4000"
66     }
67     #---------SVC4002-----------------------------
68     MISSING_INFORMATION: {
69         code: 403,
70         message: "Error: Missing information.",
71         messageId: "SVC4002"
72     }
73     #---------SVC4003------------------------------
74     # %1 - Users's ID
75     USER_NOT_FOUND: {
76         code: 404,
77         message: "Error: User '%1' was not found.",
78         messageId: "SVC4003"
79     }
80     #---------SVC4004-----------------------------
81     # %1 - Users's email address
82     INVALID_EMAIL_ADDRESS: {
83         code: 400,
84         message: "Error: Invalid email address '%1'.",
85         messageId: "SVC4004"
86     }
87     #---------SVC4005------------------------------
88     # %1 - role
89     INVALID_ROLE: {
90         code: 400,
91         message: "Error: Invalid role '%1'.",
92         messageId: "SVC4005"
93     }
94     #---------SVC4006------------------------------
95     # %1 - Users's USER_ID
96     USER_ALREADY_EXIST: {
97         code: 409,
98         message: "Error: User with '%1' ID already exists.",
99         messageId: "SVC4006"
100     }
101     #---------SVC4007------------------------------
102     DELETE_USER_ADMIN_CONFLICT: {
103         code: 409,
104         message: "Error: An administrator can only be deleted by another administrator.",
105         messageId: "SVC4007"
106     }
107     #---------SVC4008-----------------------------
108     # %1 - Users's userId
109     INVALID_USER_ID: {
110         code: 400,
111         message: "Error: Invalid userId '%1'.",
112         messageId: "SVC4008"
113     }
114     #---------SVC4009-----------------------------
115     USER_DEFINED: {
116         code: 400,
117         message: "Error: User Defined '%1'.",
118         messageId: "SVC4009"
119     }
120     #---------SVC4049------------------------------
121     # %1 - service/resource
122     COMPONENT_MISSING_CONTACT: {
123         code: 400,
124         message: "Error: Invalid Content. Missing %1 contact.",
125         messageId: "SVC4049"
126     }
127     #---------SVC4050-----------------------------
128     # %1 - Service/Resource/Additional parameter
129     # %2 - service/resource/label name
130     COMPONENT_NAME_ALREADY_EXIST: {
131         code: 409,
132         message: "Error: %1 with name '%2' already exists.",
133         messageId: "SVC4050"
134     }
135     #---------SVC4051------------------------------
136     # %1 - resource/service
137     COMPONENT_MISSING_CATEGORY: {
138         code: 400,
139         message: "Error: Invalid Content. Missing %1 category.",
140         messageId: "SVC4051"
141     }
142
143     #---------SVC4052------------------------------
144     COMPONENT_MISSING_TAGS: {
145         code: 400,
146         message: "Error: Invalid Content. At least one tag has to be specified.",
147         messageId: "SVC4052"
148     }
149
150     #---------SVC4053------------------------------
151     # %1 - service/resource
152     COMPONENT_MISSING_DESCRIPTION: {
153         code: 400,
154         message: "Error: Invalid Content. Missing %1 description.",
155         messageId: "SVC4053"
156     }
157     #---------SVC4054------------------------------
158     # %1 - resource/service
159     COMPONENT_INVALID_CATEGORY: {
160         code: 400,
161         message: "Error: Invalid Content. Value %1 for the field Category is invalid.",
162         messageId: "SVC4054"
163     }
164     #---------SVC4055------------------------------
165     MISSING_VENDOR_NAME: {
166         code: 400,
167         message: "Error: Invalid Content. Missing vendor name.",
168         messageId: "SVC4055"
169     }
170     #---------SVC4056------------------------------
171     MISSING_VENDOR_RELEASE: {
172         code: 400,
173         message: "Error: Invalid Content. Missing vendor release.",
174         messageId: "SVC4056"
175     }
176
177     #---------SVC4057------------------------------
178     MISSING_DERIVED_FROM_TEMPLATE: {
179         code: 400,
180         message: "Error: Invalid Content. Missing derived from template specification.",
181         messageId: "SVC4057"
182     }
183
184     #---------SVC4058------------------------------
185     # %1 - service/resource
186     COMPONENT_MISSING_ICON: {
187         code: 400,
188         message: "Error: Invalid Content. Missing %1 icon.",
189         messageId: "SVC4058"
190     }
191     #---------SVC4059------------------------------
192     # %1 - service/resource
193     COMPONENT_INVALID_ICON: {
194         code: 400,
195         message: "Error: Invalid Content. Invalid %1 icon.",
196         messageId: "SVC4059"
197     }
198     #---------SVC4060------------------------------
199     PARENT_RESOURCE_NOT_FOUND: {
200         code: 400,
201         message: "Error: Invalid Content. Derived from resource template was not found.",
202         messageId: "SVC4060"
203     }
204     #---------SVC4061------------------------------
205     MULTIPLE_PARENT_RESOURCE_FOUND: {
206         code: 400,
207         message: "Error: Invalid Content. Multiple derived from resource template is not allowed.",
208         messageId: "SVC4061"
209     }
210
211     #---------SVC4062------------------------------
212     # %1 - service/resource
213     MISSING_COMPONENT_NAME: {
214         code: 400,
215         message: "Error: Invalid Content. Missing %1 name.",
216         messageId: "SVC4062"
217     }
218     #---------SVC4063------------------------------
219     #%1  -  resource/service name
220     RESOURCE_NOT_FOUND: {
221         code: 404,
222         message: "Error: Requested '%1' resource was not found.",
223         messageId: "SVC4063"
224     }
225
226     #---------SVC4064------------------------------
227     # %1 - Service/Resource/Property
228     COMPONENT_INVALID_DESCRIPTION: {
229         code: 400,
230         message: "Error: Invalid Content. %1 description contains non-english characters.",
231         messageId: "SVC4064"
232     }
233     #---------SVC4065------------------------------
234     # %1 - Service/Resource/Property
235     # %2 - max resource/service name length
236     COMPONENT_DESCRIPTION_EXCEEDS_LIMIT: {
237         code: 400,
238         message: "Error: Invalid Content. %1 description exceeds limit of %2 characters.",
239         messageId: "SVC4065"
240     }
241     #---------SVC4066------------------------------
242     # %1 - max length
243     COMPONENT_TAGS_EXCEED_LIMIT: {
244         code: 400,
245         message: "Error: Invalid Content. Tags overall length exceeds limit of %1 characters.",
246         messageId: "SVC4066"
247     }
248     #---------SVC4067------------------------------
249     # %1 - max length
250     VENDOR_NAME_EXCEEDS_LIMIT: {
251         code: 400,
252         message: "Error: Invalid Content. Vendor name exceeds limit of %1 characters.",
253         messageId: "SVC4067"
254     }
255     #---------SVC4068------------------------------
256     # %1 - max length
257     VENDOR_RELEASE_EXCEEDS_LIMIT: {
258         code: 400,
259         message: "Error: Invalid Content. Vendor release exceeds limit of %1 characters.",
260         messageId: "SVC4068"
261     }
262
263     #---------SVC4069------------------------------
264     # %1 - Service/Resource/Product
265     COMPONENT_INVALID_CONTACT: {
266         code: 400,
267         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. Max length: 50",
268         messageId: "SVC4069"
269     }
270     #---------SVC4070------------------------------
271     # %1 - Service/Resource
272     INVALID_COMPONENT_NAME: {
273         code: 400,
274         message: 'Error: Invalid Content. Value %1 for Component name is invalid. Only alphanumeric characters and regular spaces are allowed.',
275         messageId: "SVC4070"
276     }
277
278     #---------SVC4071------------------------------
279     INVALID_VENDOR_NAME: {
280         code: 400,
281         message: 'Error: Invalid Content. Value %1 for the field Vendor name is invalid. Only alphanumeric characters and regular spaces are allowed.',
282         messageId: "SVC4071"
283     }
284     #---------SVC4072------------------------------
285     INVALID_VENDOR_RELEASE: {
286         code: 400,
287         message: 'Error: Invalid Content. Value %1 for the field Vendor release is invalid. Only alphanumeric characters and regular spaces are allowed.',
288         messageId: "SVC4072"
289     }
290     #---------SVC4073------------------------------
291     # %1 - Service/Resource
292     # %2 - max  resource/service name
293     COMPONENT_NAME_EXCEEDS_LIMIT: {
294         code: 400,
295         message: "Error: Invalid Content. %1 name exceeds limit of %2 characters.",
296         messageId: "SVC4073"
297     }
298     #---------SVC4080------------------------------
299     # %1 - resource/service name
300     # %2 - resource/service
301     # %3 - First name of last modifier
302     # %4 - Last name of last modifier
303     # %5 - USER_ID of last modifier
304     COMPONENT_IN_CHECKOUT_STATE: {
305         code: 403,
306         message: "Error: Requested '%1' %2 is locked for modification by %3 %4(%5).",
307         messageId: "SVC4080"
308     }
309     #---------SVC4081-----------------------------
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_IN_CERT_IN_PROGRESS_STATE: {
316         code: 403,
317         message: "Error: Requested '%1' %2 is locked for certification by %3 %4(%5).",
318         messageId: "SVC4081"
319     }
320
321     #-----------SVC4082---------------------------
322     # %1 - resource/service name
323     # %2 - resource/service
324     # %3 - First name of last modifier
325     # %4 - Last name of last modifier
326     # %5 - USER_ID of last modifier
327     COMPONENT_SENT_FOR_CERTIFICATION: {
328         code: 403,
329         message: "Error: Requested '%1' %2 is sent for certification by %3 %4(%5).",
330         messageId: "SVC4082"
331     }
332     #-----------SVC4083---------------------------
333     COMPONENT_VERSION_ALREADY_EXIST: {
334         code: 409,
335         message: "Error: Version of this %1 was already promoted.",
336         messageId: "SVC4083"
337     }
338     #-----------SVC4084---------------------------
339     # %1 - resource/service/product name
340     # %2 - resource/service/product
341     # %3 - First name of last modifier
342     # %4 - Last name of last modifier
343     # %5 - USER_ID of last modifier
344     COMPONENT_ALREADY_CHECKED_IN: {
345         code: 409,
346         message: "Error: The current version of '%1' %2 was already checked-in by %3 %4(%5).",
347         messageId: "SVC4084"
348     }
349     #-----------SVC4085---------------------------
350     # %1 - resource/service/product name
351     # %2 - resource/service/product
352     # %3 - First name of last modifier
353     # %4 - Last name of last modifier
354     # %5 - USER_ID of last modifier
355     COMPONENT_CHECKOUT_BY_ANOTHER_USER: {
356         code: 403,
357         message: "Error: %1 %2 has already been checked out by %3 %4(%5).",
358         messageId: "SVC4085"
359     }
360     #-----------SVC4086---------------------------
361     # %1  - resource/service name
362     # %2  - resource/service
363     COMPONENT_IN_USE: {
364         code: 403,
365         message: "Error: '%1' %2 is still held by previous action. Please try again later.",
366         messageId: "SVC4086"
367     }
368     #-----------SVC4087---------------------------
369     # %1 - component name
370     # %2 - resource/service/product
371     COMPONENT_HAS_NEWER_VERSION: {
372         code: 409,
373         message: "Error: Checking out of the requested version of the '%1' %2 is not allowed as a newer version exists.",
374         messageId: "SVC4087"
375     }
376     #-----------SVC4088---------------------------
377     # %1 - resource/service name
378     # %2 - resource/service
379     # %3 - First name of last modifier
380     # %4 - Last name of last modifier
381     # %5 - USER_ID of last modifier
382     COMPONENT_ALREADY_CERTIFIED: {
383         code: 403,
384         message: "Error: Requested %1 %2 has already been certified by %3 %4(%5).",
385         messageId: "SVC4088"
386     }
387     #-----------SVC4089---------------------------
388     # %1 - resource/service name
389     # %2 - resource/service
390     COMPONENT_NOT_READY_FOR_CERTIFICATION: {
391         code: 403,
392         message: "Error: Requested '%1' %2 is not ready for certification.",
393         messageId: "SVC4089"
394     }
395     #-----------SVC4100---------------------------
396     #%1 - property name
397     PROPERTY_NOT_FOUND: {
398         code: 404,
399         message: "Error: Requested '%1' property was not found.",
400         messageId: "SVC4100"
401     }
402     #-----------SVC4101---------------------------
403     #%1 - property name
404     PROPERTY_ALREADY_EXIST: {
405         code: 409,
406         message: "Error: Property with '%1' name already exists.",
407         messageId: "SVC4101"
408     }
409
410     #-----------SVC4102---------------------------
411     # %1 - capability type name
412     CAPABILITY_TYPE_ALREADY_EXIST: {
413         code: 409,
414         message: "Error: Capability Type with name '%1' already exists.",
415         messageId: "SVC4102"
416     }
417     #-----------SVC4114---------------------------
418     AUTH_FAILED_INVALIDE_HEADER: {
419         code: 400,
420         message: "Error: Invalid Authorization header.",
421         messageId: "SVC4114"
422     }
423     #-----------SVC4115---------------------------
424     # %1 - capability type name
425     MISSING_CAPABILITY_TYPE: {
426         code: 400,
427         message: "Error: Invalid Content. Missing Capability Type '%1'.",
428         messageId: "SVC4115"
429     }
430     RESOURCE_INSTANCE_BAD_REQUEST: {
431         code: 400,
432         message: "Error: Invalid Content.",
433         messageId: "SVC4116"
434     }
435     #-----------SVC4117---------------------------
436     # %1 - resource instance name
437     # %2 - resource instance name
438     # %3 - requirement name
439     RESOURCE_INSTANCE_MATCH_NOT_FOUND: {
440         code: 404,
441         message: "Error: Match not found between resource instance '%1' and resource instance '%2' for requirement '%3'.",
442         messageId: "SVC4117"
443     }
444     #-----------SVC4118---------------------------
445     # %1 - resource instance name
446     # %2 - resource instance name
447     # %3 - requirement name
448     RESOURCE_INSTANCE_ALREADY_EXIST: {
449         code: 409,
450         message: "Error: Resource instances '%1' and '%2' are already associated with requirement '%3'.",
451         messageId: "SVC4118"
452     }
453     #-----------SVC4119---------------------------
454     # %1 - resource instance name
455     # %2 - resource instance name
456     # %3 - requirement name
457     RESOURCE_INSTANCE_RELATION_NOT_FOUND: {
458         code: 404,
459         message: "Error: No relation found between resource instances '%1' and '%2' for requirement '%3'.",
460         messageId: "SVC4119"
461     }
462     #-----------SVC4120---------------------------
463     # %1 - User's USER_ID
464     USER_INACTIVE: {
465         code: 404,
466         message: "Error: User %1 inactive.",
467         messageId: "SVC4120"
468     }
469     #-----------SVC4121---------------------------
470     # %1 - User's USER_ID
471     USER_HAS_ACTIVE_ELEMENTS: {
472         code: 403,
473         message: "Error: User with %1 ID can not be deleted since it has active elements(resources/services/artifacts).",
474         messageId: "SVC4121"
475     }
476     #-----------SVC4122---------------------------
477     # %1 - artifact type
478     ARTIFACT_TYPE_NOT_SUPPORTED: {
479         code: 400,
480         message: "Error: Invalid artifact type '%1'.",
481         messageId: "SVC4122"
482     }
483     #-----------SVC4123---------------------------
484     ARTIFACT_LOGICAL_NAME_CANNOT_BE_CHANGED: {
485         code: 400,
486         message: "Error: Artifact logical name cannot be changed.",
487         messageId: "SVC4123"
488     }
489     #-----------SVC4124---------------------------
490     MISSING_ARTIFACT_TYPE: {
491         code: 400,
492         message: "Error: Missing artifact type.",
493         messageId: "SVC4124"
494     }
495     #-----------SVC4125---------------------------
496     # %1-artifact name
497     ARTIFACT_EXIST: {
498         code: 400,
499         message: "Error: Artifact '%1' already exists.",
500         messageId: "SVC4125"
501     }
502     #---------SVC4126------------------------------
503     # %1 - resource/service/product/...
504     # %2 - field (tag, vendor name...)
505     INVALID_FIELD_FORMAT: {
506         code: 400,
507         message: "Error:  Invalid %1 %2 format.",
508         messageId: "SVC4126"
509     }
510     #-----------SVC4127---------------------------
511     ARTIFACT_INVALID_MD5: {
512         code: 400,
513         message: "Error: Invalid artifact checksum.",
514         messageId: "SVC4127"
515     }
516     #-----------SVC4128---------------------------
517     MISSING_ARTIFACT_NAME: {
518         code: 400,
519         message: "Error: Invalid content. Missing artifact name.",
520         messageId: "SVC4128"
521     }
522     #-----------SVC4129---------------------------
523     MISSING_PROJECT_CODE: {
524         code: 400,
525         message: "Error: Invalid Content. Missing PROJECT_CODE number.",
526         messageId: "SVC4129"
527     }
528     #-----------SVC4130---------------------------
529     INVALID_PROJECT_CODE: {
530         code: 400,
531         message: "Error: Invalid Content. PROJECT_CODE must be from 5 up to 50 characters.",
532         messageId: "SVC4130"
533     }
534     #-----------SVC4131---------------------------
535     # %1-resource/service
536     # %2-srtifact/artifacts
537     # %3-semicolomn separated list of artifact
538     COMPONENT_MISSING_MANDATORY_ARTIFACTS: {
539         code: 403,
540         message: "Error: Missing mandatory informational %1 %2: [%3].",
541         messageId: "SVC4131"
542     }
543     #-----------SVC4132---------------------------
544     # %1 - lifecycle  type name
545     LIFECYCLE_TYPE_ALREADY_EXIST: {
546         code: 409,
547         message: "Error: Lifecycle Type with name '%1' already exists.",
548         messageId: "SVC4132"
549     }
550     #-----------SVC4133---------------------------
551     # %1 - service version
552     # %2 - service name
553     SERVICE_NOT_AVAILABLE_FOR_DISTRIBUTION: {
554         code: 403,
555         message: "Error: Version %1 of '%2' service is not available for distribution.",
556         messageId: "SVC4133"
557     }
558     #-----------SVC4134---------------------------
559     MISSING_LIFECYCLE_TYPE: {
560         code: 400,
561         message: "Error: Invalid Content. Missing interface life-cycle type.",
562         messageId: "SVC4134"
563     }
564     #---------SVC4135------------------------------
565     SERVICE_CATEGORY_CANNOT_BE_CHANGED: {
566         code: 400,
567         message: "Error: Service category cannot be changed once the service is certified.",
568         messageId: "SVC4135"
569     }
570     #---------SVC4136------------------------------
571     # %1 - distribution environment name
572     DISTRIBUTION_ENVIRONMENT_NOT_AVAILABLE: {
573         code: 500,
574         message: "Error: Requested distribution environment '%1' is not available.",
575         messageId: "SVC4136"
576     }
577     #---------SVC4137------------------------------
578     # %1 - distribution environment name
579     DISTRIBUTION_ENVIRONMENT_NOT_FOUND: {
580         code: 400,
581         message: "Error: Requested distribution environment '%1' was not found.",
582         messageId: "SVC4137"
583     }
584     #---------SVC4138------------------------------
585     DISTRIBUTION_ENVIRONMENT_INVALID: {
586         code: 400,
587         message: "Error: Invalid distribution environment.",
588         messageId: "SVC4138"
589     }
590     #---------SVC4200------------------------------
591     # %1 - Service/Resource
592     # %2 - max icon name length
593     COMPONENT_ICON_EXCEEDS_LIMIT: {
594         code: 400,
595         message: "Error: Invalid Content. %1 icon name exceeds limit of %2 characters.",
596         messageId: "SVC4200"
597     }
598     #---------SVC4300------------------------------
599     RESTRICTED_ACCESS: {
600         code: 403,
601         message: "Error: Restricted access.",
602         messageId: "SVC4300"
603     }
604     #---------SVC4301------------------------------
605     RESTRICTED_OPERATION: {
606         code: 403,
607         message: "Error: Restricted operation.",
608         messageId: "SVC4301"
609     }
610     #---------SVC4500------------------------------
611     MISSING_BODY: {
612         code: 400  ,
613         message: "Error: Missing request body.",
614         messageId: "SVC4500"
615     }
616     #---------SVC4501------------------------------
617     MISSING_PUBLIC_KEY: {
618         code: 400  ,
619         message: "Error: Invalid Content. Missing mandatory parameter 'apiPublicKey'." ,
620         messageId: "SVC4501"
621     }
622     #---------SVC4502------------------------------
623     DISTRIBUTION_ENV_DOES_NOT_EXIST: {
624         code: 400  ,
625         message: "Error: Invalid  Body  : Missing mandatory parameter 'distrEnvName'." ,
626         messageId: "SVC4502"
627     }
628     #-----------SVC4503---------------------------
629     # %1 - service name
630     SERVICE_NOT_FOUND: {
631         code: 404,
632         message: "Error: Requested '%1' service was not found.",
633         messageId: "SVC4503"
634     }
635
636     #---------SVC4504------------------------------
637     # %1 - Service/Resource
638     # %2 - service/resource version
639     COMPONENT_VERSION_NOT_FOUND: {
640         code: 404,
641         message: "Error: %1 version %2 was not found.",
642         messageId: "SVC4504"
643     }
644     #-----------SVC4505---------------------------
645     #%1-artifact name
646
647     ARTIFACT_NOT_FOUND: {
648         code: 404,
649         message: "Error: Artifact '%1' was not found.",
650         messageId: "SVC4505"
651     }
652     #---------SVC4506------------------------------
653     MISSING_ENV_NAME: {
654         code: 400  ,
655         message: "Error: Invalid Content. Missing mandatory parameter 'distrEnvName'.",
656         messageId: "SVC4506"
657     }
658     #---------SVC4507------------------------------
659     COMPONENT_INVALID_TAGS_NO_COMP_NAME: {
660         code: 400,
661         message: "Error: Invalid Content. One of the tags should be the component name.",
662         messageId: "SVC4507"
663     }
664
665     #---------SVC4508------------------------------
666     SERVICE_NAME_CANNOT_BE_CHANGED: {
667         code: 400,
668         message: "Error: Service name cannot be changed once the service is certified.",
669         messageId: "SVC4508"
670     }
671
672     #---------SVC4509------------------------------
673     SERVICE_ICON_CANNOT_BE_CHANGED: {
674         code: 400,
675         message: "Error: Icon cannot be changed once the service is certified.",
676         messageId: "SVC4509"
677     }
678     #---------SVC4510------------------------------
679     # %1 - icon name max length
680     SERVICE_ICON_EXCEEDS_LIMIT: {
681         code: 400,
682         message: "Error: Invalid Content. Icon name exceeds limit of %1 characters.",
683         messageId: "SVC4510"
684     }
685     #---------SVC4511------------------------------
686     DISTRIBUTION_REQUESTED_NOT_FOUND: {
687         code: 404,
688         message: "Error: Requested distribution was not found.",
689         messageId: "SVC4511"
690     }
691     #---------SVC4512------------------------------
692     # %1 - Distribution ID
693     DISTRIBUTION_REQUESTED_FAILED: {
694         code: 403,
695         message: "Error: Requested distribution '%1' failed.",
696         messageId: "SVC4512"
697     }
698     #---------SVC4513------------------------------
699     RESOURCE_CATEGORY_CANNOT_BE_CHANGED: {
700         code: 400,
701         message: "Error: Resource category cannot be changed once the resource is certified.",
702         messageId: "SVC4513"
703     }
704     #---------SVC4514------------------------------
705     RESOURCE_NAME_CANNOT_BE_CHANGED: {
706         code: 400,
707         message: "Error: Resource name cannot be changed once the resource is certified.",
708         messageId: "SVC4514"
709     }
710     #---------SVC4515------------------------------
711     RESOURCE_ICON_CANNOT_BE_CHANGED: {
712         code: 400,
713         message: "Error: Icon cannot be changed once the resource is certified.",
714         messageId: "SVC4515"
715     }
716     #---------SVC4516------------------------------
717     RESOURCE_VENDOR_NAME_CANNOT_BE_CHANGED: {
718         code: 400,
719         message: "Error: Vendor name cannot be changed once the resource is certified.",
720         messageId: "SVC4516"
721     }
722     #---------SVC4517------------------------------
723     RESOURCE_DERIVED_FROM_CANNOT_BE_CHANGED: {
724         code: 400,
725         message: "Error: Derived from resource template cannot be changed once the resource is certified.",
726         messageId: "SVC4517"
727     }
728     #---------SVC4518------------------------------
729     # %1 - max length
730     COMPONENT_SINGLE_TAG_EXCEED_LIMIT: {
731         code: 400,
732         message: "Error: Invalid Content. Single tag exceeds limit of %1 characters.",
733         messageId: "SVC4518"
734     }
735     #---------SVC4519------------------------------
736     INVALID_DEFAULT_VALUE: {
737         code: 400,
738         message: "Error: mismatch in data-type occurred for property %1. data type is %2 and default value found is %3.",
739         messageId: "SVC4519"
740     }
741     #---------SVC4520------------------------------
742     # %1 - service or resource
743     ADDITIONAL_INFORMATION_MAX_NUMBER_REACHED: {
744         code: 409,
745         message: "Error: Maximal number of additional %1 parameters was reached.",
746         messageId: "SVC4520"
747     }
748     #---------SVC4521------------------------------
749     ADDITIONAL_INFORMATION_EMPTY_STRING_NOT_ALLOWED: {
750         code: 400,
751         message: "Error: Invalid Content. The Additional information label and value cannot be empty.",
752         messageId: "SVC4521"
753     }
754     #---------SVC4522------------------------------
755     # %1 - label/value
756     # %2 - Maximal length of %1
757     ADDITIONAL_INFORMATION_EXCEEDS_LIMIT: {
758         code: 400,
759         message: "Error: Invalid Content. Additional information %1 exceeds limit of %2 characters.",
760         messageId: "SVC4522"
761     }
762     #---------SVC4523------------------------------
763     ADDITIONAL_INFORMATION_KEY_NOT_ALLOWED_CHARACTERS: {
764         code: 400,
765         message: 'Error: Invalid Content. Additional information label is not allowed to contain characters like <>:"\/|?* and space characters other than regular space.',
766         messageId: "SVC4523"
767     }
768     #---------SVC4524------------------------------
769     ADDITIONAL_INFORMATION_NOT_FOUND: {
770         code: 409,
771         message: "Error: Requested additional information was not found.",
772         messageId: "SVC4524"
773     }
774     #---------SVC4525------------------------------
775     ADDITIONAL_INFORMATION_VALUE_NOT_ALLOWED_CHARACTERS: {
776         code: 400,
777         message: 'Error: Invalid Content. Additional information contains non-english characters.',
778         messageId: "SVC4525"
779     }
780     #---------SVC4526------------------------------
781     RESOURCE_INSTANCE_NOT_FOUND: {
782         code: 404,
783         message: "Error: Requested '%1' resource instance was not found.",
784         messageId: "SVC4526"
785     }
786     #---------SVC4527------------------------------
787     ASDC_VERSION_NOT_FOUND: {
788         code: 500,
789         message: 'Error: ASDC version cannot be displayed.',
790         messageId: "SVC4527"
791     }
792     #---------SVC4528------------------------------
793     # %1-artifact url/artifact label/artifact description/VNF Service Indicator
794     MISSING_DATA: {
795         code: 400,
796         message: "Error: Invalid content. Missing %1.",
797         messageId: "SVC4528"
798     }
799     #---------SVC4529------------------------------
800     # %1-artifact url/artifact label/artifact description/artifact name
801     # %2 - Maximal length of %1
802     EXCEEDS_LIMIT: {
803         code: 400,
804         message: "Error: Invalid Content. %1 exceeds limit of %2 characters.",
805         messageId: "SVC4529"
806     }
807     #---------SVC4530------------------------------
808     ARTIFACT_INVALID_TIMEOUT: {
809         code: 400,
810         message: "Error: Invalid Content. Artifact Timeout should be set to valid positive non-zero number of minutes.",
811         messageId: "SVC4530"
812     }
813     #---------SVC4531------------------------------
814     SERVICE_IS_VNF_CANNOT_BE_CHANGED: {
815         code: 400,
816         message: "Error: VNF Indicator cannot be updated for certified service.",
817         messageId: "SVC4531"
818     }
819     #---------SVC4532------------------------------
820     RESOURCE_INSTANCE_NOT_FOUND_ON_SERVICE: {
821         code: 404,
822         message: "Error: Requested '%1' resource instance was not found on the service '%2.",
823         messageId: "SVC4532"
824     }
825     #---------SVC4533------------------------------
826     # %1 -  "HEAT"/"HEAT_ENV"/"MURANO_PKG"/"YANG_XML"
827     WRONG_ARTIFACT_FILE_EXTENSION: {
828         code: 400,
829         message: "Error: Invalid file extension for %1 artifact type.",
830         messageId: "SVC4533"
831     }
832
833     #---------SVC4534------------------------------
834     # %1 -  "HEAT"/"HEAT_ENV"
835     INVALID_YAML: {
836         code: 400,
837         message: "Error: Uploaded YAML file for %1 artifact is invalid.",
838         messageId: "SVC4534"
839     }
840
841     #---------SVC4535------------------------------
842     # %1 -  "HEAT"
843     INVALID_DEPLOYMENT_ARTIFACT_HEAT: {
844         code: 400,
845         message: "Error: Invalid %1 artifact.",
846         messageId: "SVC4535"
847     }
848     #---------SVC4536------------------------------
849     # %1 - "Resource"/"Service"
850     # %2 -  resource/service name
851     # %3 -  "HEAT"/"HEAT_ENV"/"MURANO_PKG"
852     # %4 -  "HEAT"/"HEAT_ENV"/"MURANO_PKG
853     DEPLOYMENT_ARTIFACT_OF_TYPE_ALREADY_EXISTS: {
854         code: 400,
855         message: "Error: %1 '%2' already has a deployment artifact of %3 type .Please delete or update an existing %4 artifact.",
856         messageId: "SVC4536"
857     }
858
859     #---------SVC4537------------------------------
860     MISSING_HEAT: {
861         code: 400,
862         message: "Error: Missing HEAT artifact. HEAT_ENV artifact cannot be uploaded without corresponding HEAT template.",
863         messageId: "SVC4537"
864     }
865     #---------SVC4538------------------------------
866     MISMATCH_HEAT_VS_HEAT_ENV: {
867         code: 400,
868         message: "Error: Invalid artifact content. Parameter's set in HEAT_ENV '%1' artifact doesn't match the parameters in HEAT '%2' artifact.",
869         messageId: "SVC4538"
870     }
871     #---------SVC4539------------------------------
872     INVALID_RESOURCE_PAYLOAD: {
873         code: 400,
874         message: "Error: Invalid resource payload.",
875         messageId: "SVC4539"
876     }
877     #---------SVC4540------------------------------
878     INVALID_TOSCA_FILE_EXTENSION: {
879         code: 400,
880         message: "Error: Invalid file extension for TOSCA template.",
881         messageId: "SVC4540"
882     }
883     #---------SVC4541------------------------------
884     INVALID_YAML_FILE: {
885         code: 400,
886         message: "Error: Invalid YAML file.",
887         messageId: "SVC4541"
888     }
889     #---------SVC4542------------------------------
890     INVALID_TOSCA_TEMPLATE: {
891         code: 400,
892         message: "Error: Invalid TOSCA template.",
893         messageId: "SVC4542"
894     }
895     #---------SVC4543------------------------------
896     NOT_RESOURCE_TOSCA_TEMPLATE: {
897         code: 400,
898         message: "Error: Imported Service TOSCA template.",
899         messageId: "SVC4543"
900     }
901     #---------SVC4544------------------------------
902     NOT_SINGLE_RESOURCE: {
903         code: 400,
904         message: "Error: Imported TOSCA template should contain one resource definition.",
905         messageId: "SVC4544"
906     }
907     #---------SVC4545------------------------------
908     INVALID_RESOURCE_NAMESPACE: {
909         code: 400,
910         message: "Error: Invalid resource namespace.",
911         messageId: "SVC4545"
912     }
913     #---------SVC4546------------------------------
914     RESOURCE_ALREADY_EXISTS: {
915         code: 400,
916         message: "Error: Imported resource already exists in ASDC Catalog.",
917         messageId: "SVC4546"
918     }
919     #---------SVC4549------------------------------
920     INVALID_RESOURCE_CHECKSUM: {
921         code: 400,
922         message: "Error: Invalid resource checksum.",
923         messageId: "SVC4549"
924     }
925     #---------SVC4551------------------------------
926     # %1  -  ECOMP User name
927     ECOMP_USER_NOT_FOUND: {
928         code: 404,
929         message: "Error: ECOMP User '%1' was not found.",
930         messageId: "SVC4551"
931     }
932     #---------SVC4554------------------------------
933     # %1 - Artifact Id
934     # %2 - "Resource"/"Service"
935     COMPONENT_ARTIFACT_NOT_FOUND: {
936         code: 404,
937         message: "Error: Requested artifact %1 doesn't belong to specified %2.",
938         messageId: "SVC4554"
939     }
940     #---------SVC4554------------------------------
941     # %1 - "Service name"
942     SERVICE_DEPLOYMENT_ARTIFACT_NOT_FOUND: {
943         code: 403,
944         message: "Error: Requested '%1' service is not ready for certification. Service has to have at least one deployment artifact.",
945         messageId: "SVC4554"
946     }
947     #---------SVC4555------------------------------
948     # %1 - "Resource"/"Service"/"Product"
949     # %2 - "category"
950     COMPONENT_ELEMENT_INVALID_NAME_LENGTH: {
951         code: 400,
952         message: "Error: Invalid %1 %2 name length.",
953         messageId: "SVC4555"
954     }
955     #---------SVC4556------------------------------
956     # %1 - "Resource"/"Service"/"Product"
957     # %2 - "category"
958     COMPONENT_ELEMENT_INVALID_NAME_FORMAT: {
959         code: 400,
960         message: "Error: Invalid %1 %2 name format.",
961         messageId: "SVC4556"
962     }
963     #---------SVC4557------------------------------
964     # %1 - "Resource"/"Service"/"Product"
965     # %2 - "category name"
966     COMPONENT_CATEGORY_ALREADY_EXISTS: {
967         code: 409,
968         message: "Error: %1 category name '%2' already exists.",
969         messageId: "SVC4557"
970     }
971     #---------SVC4558------------------------------
972     # %1 - "service"/"VF"
973     # %2 - "Resource name"
974     VALIDATED_RESOURCE_NOT_FOUND: {
975         code: 403,
976         message: "Error: Submit for Testing is not permitted as your '%1' includes non-validated '%2' resource.",
977         messageId: "SVC4558"
978     }
979     #---------SVC4559------------------------------
980     # %1 - "service"/"VF"
981     # %2 - "Resource name"
982     FOUND_ALREADY_VALIDATED_RESOURCE: {
983         code: 403,
984         message: "Error: Submit for Testing is not permitted as your '%1' includes non-validated '%2' resource. Please use already available validated resource version.",
985         messageId: "SVC4559"
986     }
987     #---------SVC4560------------------------------
988     # %1 - "service"/"VF"
989     # %2 - "Resource name"
990     FOUND_LIST_VALIDATED_RESOURCES: {
991         code: 403,
992         message: "Error: Submit for Testing is not permitted as your '%1' includes non-validated '%2' resource. Please use one of available validated resource versions.",
993         messageId: "SVC4560"
994     }
995     #---------SVC4561------------------------------
996     # %1 - "resource"/"product"
997     # %2 - "category"
998     # %3 - "category name"
999     COMPONENT_CATEGORY_NOT_FOUND: {
1000         code: 404,
1001         message: "Error: Requested %1 %2 '%3' was not found.",
1002         messageId: "SVC4561"
1003     }
1004     #---------SVC4562------------------------------
1005     # %1 - "Resource"/"Product"
1006     # %2 - "sub-category name"
1007     # %3 - "category name"
1008     COMPONENT_SUB_CATEGORY_EXISTS_FOR_CATEGORY: {
1009         code: 409,
1010         message: "Error: %1 sub-category '%2' already exists under '%3' category.",
1011         messageId: "SVC4562"
1012     }
1013     #---------SVC4563------------------------------
1014     # %1 - "Product"
1015     # %2 - "grouping name"
1016     # %3 - "sub-category name"
1017     COMPONENT_GROUPING_EXISTS_FOR_SUB_CATEGORY: {
1018         code: 409,
1019         message: "Error: %1 grouping '%2' already exists under '%3' sub-category.",
1020         messageId: "SVC4563"
1021     }
1022     #---------SVC4564------------------------------
1023     # %1 - product name
1024     PRODUCT_NOT_FOUND: {
1025         code: 404,
1026         message: "Error: Requested '%1' product was not found.",
1027         messageId: "SVC4564"
1028     }
1029     #---------SVC4565------------------------------
1030     # %1 - "HEAT"
1031     # %2  - parameter type ("string" , "boolean" , "number")
1032     # %3 -  parameter name
1033     INVALID_HEAT_PARAMETER_VALUE: {
1034         code: 400,
1035         message: "Error: Invalid %1 artifact. Invalid %2 value set for '%3' parameter.",
1036         messageId: "SVC4565"
1037     }
1038     #---------SVC4566------------------------------
1039     # %1 - "HEAT"
1040     # %2  - parameter type ("string" , "boolean" , "number")
1041     INVALID_HEAT_PARAMETER_TYPE: {
1042         code: 400,
1043         message: "Error: Invalid %1 artifact. Unsupported '%2' parameter type.",
1044         messageId: "SVC4566"
1045     }
1046     #---------SVC4567------------------------------
1047     # %1 -  "YANG_XML"
1048     INVALID_XML: {
1049         code: 400,
1050         message: "Error: Uploaded XML file for %1 artifact is invalid.",
1051         messageId: "SVC4567"
1052     }
1053     #---------SVC4569------------------------------
1054     # %1 - "User Name and UserId"
1055     # %2  -"component names ot IDs"
1056     CANNOT_DELETE_USER_WITH_ACTIVE_ELEMENTS: {
1057         code: 412,
1058         message: "Error: User cannot be deleted. User '%1' has projects that cannot be committed: %2.",
1059         messageId: "SVC4569"
1060     }
1061     #---------SVC4568------------------------------
1062     # %1 - "User Name and UserId"
1063     # %2  -"checked-out"/"in-certification"
1064     CANNOT_UPDATE_USER_WITH_ACTIVE_ELEMENTS: {
1065         code: 409,
1066         message: "Error: Role cannot be changed. User '%1' has %2 projects.",
1067         messageId: "SVC4568"
1068     }
1069     #---------SVC4570------------------------------
1070     UPDATE_USER_ADMIN_CONFLICT: {
1071         code: 409,
1072         message: "Error: An administrator is not allowed to change his/her role.",
1073         messageId: "SVC4570"
1074     }
1075     #---------SVC4571------------------------------
1076     SERVICE_CANNOT_CONTAIN_SUBCATEGORY: {
1077         code: 400,
1078         message: "Error: Sub category cannot be defined for service",
1079         messageId: "SVC4571"
1080     }
1081     #---------SVC4572------------------------------
1082     # %1 - "Resource"/"Service"
1083     COMPONENT_TOO_MUCH_CATEGORIES: {
1084         code: 400,
1085         message: "Error: %1 must have only 1 category",
1086         messageId: "SVC4572"
1087     }
1088     #---------SVC4574------------------------------
1089     RESOURCE_TOO_MUCH_SUBCATEGORIES: {
1090         code: 400,
1091         message: "Error: Resource must have only 1 sub category",
1092         messageId: "SVC4574"
1093     }
1094     #---------SVC4575------------------------------
1095     COMPONENT_MISSING_SUBCATEGORY: {
1096         code: 400,
1097         message: "Error: Missing sub category",
1098         messageId: "SVC4575"
1099     }
1100     #---------SVC4576------------------------------
1101     # %1 - "component type"
1102     UNSUPPORTED_ERROR: {
1103         code: 400,
1104         message: "Error : Requested component type %1 is unsupported.",
1105         messageId: "SVC4576"
1106     }
1107     #---------SVC4577------------------------------
1108     # %1 - "resource type"
1109     RESOURCE_CANNOT_CONTAIN_RESOURCE_INSTANCES: {
1110         code: 409,
1111         message: "Error : Resource of type %1 cannot contain resource instances.",
1112         messageId: "SVC4577"
1113     }
1114     #---------SVC4578------------------------------
1115     # %1 - "Resource"/"Service"
1116     # %2 -  resource/service name
1117     # %3 -  "artifact name"
1118     DEPLOYMENT_ARTIFACT_NAME_ALREADY_EXISTS: {
1119         code: 400,
1120         message: "Error: %1 '%2' already has a deployment artifact named '%3'.",
1121         messageId: "SVC4578"
1122     }
1123     #---------SVC4579------------------------------
1124     # %1 - "Category"/"Sub-Category"/"Group"
1125     # %2 -  category/sub-category/grouping name.
1126     INVALID_GROUP_ASSOCIATION: {
1127         code: 400,
1128         message: "Error: Invalid group association. %1 '%2' was not found.",
1129         messageId: "SVC4579"
1130     }
1131     #---------SVC4580------------------------------
1132     EMPTY_PRODUCT_CONTACTS_LIST: {
1133         code: 400,
1134         message: "Error: Invalid content. At least one Product Contact has to be specified.",
1135         messageId: "SVC4580"
1136     }
1137     #---------SVC4581------------------------------
1138     # %1 - UserId
1139     INVALID_PRODUCT_CONTACT: {
1140         code: 400,
1141         message: "Error: Invalid content. User '%1' cannot be set as Product Contact.",
1142         messageId: "SVC4581"
1143     }
1144     #---------SVC4582------------------------------
1145     # %1 - Product
1146     # %2 - "abbreviated"/"full"
1147     MISSING_ONE_OF_COMPONENT_NAMES: {
1148         code: 400,
1149         message: "Error: Invalid content. Missing %1 %2 name.",
1150         messageId: "SVC4582"
1151     }
1152     #---------SVC4583------------------------------
1153     # %1 - "Icon"
1154     # %2 - "resource"/"service"/"product"
1155     COMPONENT_PARAMETER_CANNOT_BE_CHANGED: {
1156         code: 400,
1157         message: "Error: %1 cannot be changed once the %2 is certified.",
1158         messageId: "SVC4583"
1159     }
1160     #---------SVC4584------------------------------
1161     # %1  - service/VF name
1162     # %2 - "service" /"VF"
1163     # %3 -  resource instance origin type
1164     # %4 -  resource instance name
1165     # %5 -  requirement/capability
1166     # %6 -  requirement/capability name
1167     # %7 -  "fulfilled" (for req)/"consumed (for cap)"
1168     REQ_CAP_NOT_SATISFIED_BEFORE_CERTIFICATION: {
1169         code: 403,
1170         message: "Error:  Requested '%1' %2 is not ready for certification.  %3 '%4' has to have %5 '%6' %7.",
1171         messageId: "SVC4584"
1172     }
1173     #---------SVC4585------------------------------
1174     INVALID_OCCURRENCES: {
1175         code: 400,
1176         message: "Error: Invalid occurrences format.",
1177         messageId: "SVC4585"
1178     }
1179     #---------SVC4586------------------------------
1180     #---------SVC4586------------------------------
1181     INVALID_SERVICE_API_URL: {
1182         code: 400,
1183         message: 'Error: Invalid Service API URL. Please check whether your URL has a valid domain extension and does not contain the following characters - #?&@%+;,=$<>~^`\[]{}|"*!',
1184         messageId: "SVC4586"
1185     }
1186     #---------SVC4587------------------------------
1187     # %1  - Data type name
1188     DATA_TYPE_ALREADY_EXIST: {
1189         code: 409,
1190         message: 'Error: Data type %1 already exists.',
1191         messageId: "SVC4587"
1192     }
1193     #---------SVC4588------------------------------
1194     # %1  - Data type name
1195     DATA_TYPE_NOR_PROPERTIES_NEITHER_DERIVED_FROM: {
1196         code: 400,
1197         message: 'Error: Invalid Data type %1. Data type must have either a valid derived from declaration or at least one valid property',
1198         messageId: "SVC4588"
1199     }
1200     #---------SVC4589------------------------------
1201     # %1  - Data type name
1202     DATA_TYPE_PROPERTIES_CANNOT_BE_EMPTY: {
1203         code: 400,
1204         message: "Error: Invalid Data type %1. 'properties' parameter cannot be empty if provided.",
1205         messageId: "SVC4589"
1206     }
1207     #---------SVC4590------------------------------
1208     # %1  - Property type name
1209     # %2  - Property name
1210     INVALID_PROPERTY_TYPE: {
1211         code: 400,
1212         message: "Error: Invalid Property type %1 in property %2.",
1213         messageId: "SVC4590"
1214     }
1215     #---------SVC4591------------------------------
1216     # %1  - Property inner type
1217     # %2  - Property name
1218     INVALID_PROPERTY_INNER_TYPE: {
1219         code: 400,
1220         message: "Error: Invalid property inner type %1, in property %2",
1221         messageId: "SVC4591"
1222     }
1223     #---------SVC4592------------------------------
1224     # %1  - component instance name
1225     # %2  - "resource instance"/"service instance"
1226     COMPONENT_INSTANCE_NOT_FOUND: {
1227         code: 404,
1228         message: "Error: Requested '%1' %2 was not found.",
1229         messageId: "SVC4592"
1230     }
1231     #---------SVC4593------------------------------
1232     # %1 - component instance name
1233     # %2 - "resource instance"/"service instance"
1234     # %3 - "resource/"service"/"product"
1235     # %4 - container name
1236     COMPONENT_INSTANCE_NOT_FOUND_ON_CONTAINER: {
1237         code: 404,
1238         message: "Error: Requested '%1' %2 was not found on the %3 '%4'.",
1239         messageId: "SVC4593"
1240     }
1241     #---------SVC4594------------------------------
1242     #%1 - requirement / capability
1243     #%2 - requirement name
1244     IMPORT_DUPLICATE_REQ_CAP_NAME: {
1245         code: 400,
1246         message: "Error: Imported TOSCA template contains more than one %1 named '%2'.",
1247         messageId: "SVC4594"
1248     }
1249     #---------SVC4595------------------------------
1250     #%1 - requirement / capability
1251     #%2 - requirement name
1252     #%3 - parent containing the requirement
1253     IMPORT_REQ_CAP_NAME_EXISTS_IN_DERIVED: {
1254         code: 400,
1255         message: "Error: Imported TOSCA template contains %1 '%2' that is already defined by derived template %3.",
1256         messageId: "SVC4595"
1257     }
1258     #---------SVC4596------------------------------
1259     # %1  - Data type name
1260     DATA_TYPE_DERIVED_IS_MISSING: {
1261         code: 400,
1262         message: "Error: Invalid Content. The ancestor data type %1 cannot be found in the system.",
1263         messageId: "SVC4596"
1264     }
1265     #---------SVC4597------------------------------
1266     # %1  - Data type name
1267     # %2  - Property names
1268     DATA_TYPE_PROPERTY_ALREADY_DEFINED_IN_ANCESTOR: {
1269         code: 400,
1270         message: "Error: Invalid Content. The data type %1 contains properties named %2 which are already defined in one of its ancestors.",
1271         messageId: "SVC4597"
1272     }
1273     #---------SVC4598------------------------------
1274     # %1  - Data type name
1275     DATA_TYPE_DUPLICATE_PROPERTY: {
1276         code: 400,
1277         message: "Error: Invalid Content. The data type %1 contains duplicate property.",
1278         messageId: "SVC4598"
1279     }
1280     #---------SVC4599------------------------------
1281     # %1  - Data type name
1282     # %2  - Property names
1283     DATA_TYPE_PROEPRTY_CANNOT_HAVE_SAME_TYPE_OF_DATA_TYPE: {
1284         code: 400,
1285         message: "Error: Invalid Content. The data type %1 contains properties %2 which their type is this data type.",
1286         messageId: "SVC4599"
1287     }
1288     #---------SVC4600------------------------------
1289     # %1  - Data type name
1290     DATA_TYPE_CANNOT_HAVE_PROPERTIES: {
1291         code: 400,
1292         message: "Error: Invalid Content. The data type %1 cannot have properties since it is of type scalar",
1293         messageId: "SVC4600"
1294     }
1295     #---------SVC4601------------------------------
1296     NOT_TOPOLOGY_TOSCA_TEMPLATE: {
1297         code: 400,
1298         message: "Error: TOSCA yaml file %1 cannot be modeled to VF as it does not contain 'topology_template.",
1299         messageId: "SVC4601"
1300     }
1301     #---------SVC4602--------------------------------
1302     # %1 - yaml file name
1303     # %2 - node_template label
1304     # %3 - node_template type
1305     INVALID_NODE_TEMPLATE: {
1306         code: 400,
1307         message: "Error: TOSCA yaml file '%1' contains node_template '%2' of type '%3' that does not represent existing VFC/CP/VL",
1308         messageId: "SVC4602"
1309     }
1310     #---------SVC4603------------------------------
1311     # %1 - component type
1312     # %2 - component name
1313     # %3 - state
1314     ILLEGAL_COMPONENT_STATE: {
1315         code: 403,
1316         message: "Error: Action is not allowed on %1 '%2' because it is in an illegal state %3.",
1317         messageId: "SVC4603"
1318     }
1319     #---------SVC4604------------------------------
1320     # %1 - csar file name
1321     CSAR_INVALID: {
1322         code: 400,
1323         message: "Error: TOSCA CSAR '%1' is invalid. 'TOSCA-Metadata/Tosca.meta' file must be provided.",
1324         messageId: "SVC4604"
1325     }
1326     #---------SVC4605------------------------------
1327     # %1 - csar file name
1328     CSAR_INVALID_FORMAT: {
1329         code: 400,
1330         message: "Error: TOSCA CSAR '%1' is invalid. Invalid 'TOSCA-Metadata/Tosca.meta' file format.",
1331         messageId: "SVC4605"
1332     }
1333     #---------SVC4606------------------------------
1334     # %1 - property name
1335     # %2 - property type
1336     # %3 - property innerType
1337     # %4 - default value is
1338     INVALID_COMPLEX_DEFAULT_VALUE: {
1339         code: 400,
1340         message: "Error: Invalid default value of property %1. Data type is %2 with inner type %3 and default value found is %4.",
1341         messageId: "SVC4606"
1342     }
1343     #---------SVC4607------------------------------
1344     # %1 - csar file name
1345     CSAR_NOT_FOUND: {
1346         code: 400,
1347         message: "Error: TOSCA CSAR '%1' is not found.",
1348         messageId: "SVC4607"
1349     }
1350     #---------SVC4608------------------------------
1351     # %1 - artifact name
1352     # %2 - component type
1353     # %3 - actual component type
1354     MISMATCH_BETWEEN_ARTIFACT_TYPE_AND_COMPONENT_TYPE: {
1355         code: 400,
1356         message: "Error: Artifact %1 is only compatible with component of type %2, but component type is %3.",
1357         messageId: "SVC4608"
1358     }
1359
1360     #---------SVC4609------------------------------
1361     # %1 -  "INVALID_JSON"
1362     INVALID_JSON: {
1363         code: 400,
1364         message: "Error: Uploaded JSON file for %1 artifact is invalid.",
1365         messageId: "SVC4609"
1366     }
1367     #---------SVC4610------------------------------
1368     # %1 - csar file name
1369     # %2 - missing file name
1370     YAML_NOT_FOUND_IN_CSAR: {
1371         code: 400,
1372         message: "Error - TOSCA CSAR %1 is invalid. TOSCA-Metadata/Tosca.meta refers to file %2 that is not provided.",
1373         messageId: "SVC4610"
1374     }
1375     #---------SVC4611------------------------------
1376     # %1 - group name
1377     GROUP_MEMBER_EMPTY: {
1378         code: 400,
1379         message: "Error: Invalid Content. Group %1 member list was provided but does not have values",
1380         messageId: "SVC4611"
1381     }
1382     #---------SVC4612------------------------------
1383     # %1  - group name
1384     GROUP_TYPE_ALREADY_EXIST: {
1385         code: 409,
1386         message: 'Error: Group type %1 already exists.',
1387         messageId: "SVC4612"
1388     }
1389     #---------SVC4613------------------------------
1390     # %1 - group name
1391     # %2 - VF name(component name)
1392     # %3 - actual component type [VF]
1393     GROUP_ALREADY_EXIST: {
1394         code: 409,
1395         message: "Error: Group with name '%1' already exists in %2 %3.",
1396         messageId: "SVC4613"
1397     }
1398     #---------SVC4614------------------------------
1399     # %1 - group type
1400     GROUP_TYPE_IS_INVALID: {
1401         code: 400,
1402         message: "Error: Invalid content. Group type %1 does not exist",
1403         messageId: "SVC4614"
1404     }
1405     #---------SVC4615------------------------------
1406     # %1 - group name
1407     GROUP_MISSING_GROUP_TYPE: {
1408         code: 400,
1409         message: "Error: Invalid Content. Missing Group Type for group '%1'",
1410         messageId: "SVC4615"
1411     }
1412     #---------SVC4616------------------------------
1413     # %1 - member name
1414     # %2 - group name
1415     # %3 - VF name
1416     # %4 - component type [VF ]
1417     GROUP_INVALID_COMPONENT_INSTANCE: {
1418         code: 400,
1419         message: "Error: Member '%1' listed in group '%2' is not part of '%3' %4.",
1420         messageId: "SVC4616"
1421     }
1422     #---------SVC4617------------------------------
1423     # %1 - member name
1424     # %2 - group name
1425     # %3 - group type
1426     GROUP_INVALID_TOSCA_NAME_OF_COMPONENT_INSTANCE: {
1427         code: 400,
1428         message: "Error: member %1 listed in group %2 is not part of allowed members of group type %3.",
1429         messageId: "SVC4617"
1430     }
1431     #---------SVC4618------------------------------
1432     # %1 - missing file name
1433     # %2 - csar file name
1434     ARTIFACT_NOT_FOUND_IN_CSAR: {
1435         code: 400,
1436         message: "Error: artifact %1 is defined in CSAR %2 manifest but is not provided",
1437         messageId: "SVC4618"
1438     }
1439     #---------SVC4619------------------------------
1440     # %1 - artifact name
1441     # %2 - artifact type
1442     # %3 - existing artifact type
1443     ARTIFACT_ALREADY_EXIST_IN_DIFFERENT_TYPE_IN_CSAR: {
1444         code: 400,
1445         message: "Error: artifact %1 in type %2 already exists in type %3.",
1446         messageId: "SVC4619"
1447     }
1448     #---------SVC4620------------------------------
1449     FAILED_RETRIVE_ARTIFACTS_TYPES: {
1450         code: 400,
1451         message: "Error: Failed to retrieve list of suported artifact types.",
1452         messageId: "SVC4620"
1453     }
1454     #---------SVC4621------------------------------
1455     # %1 - artifact name
1456     # %2 - master
1457     ARTIFACT_ALRADY_EXIST_IN_MASTER_IN_CSAR: {
1458         code: 400,
1459         message: "Error: artifact %1 already exists in master %2 .",
1460         messageId: "SVC4621"
1461     }
1462     #---------SVC4622------------------------------
1463     # %1 - artifact name
1464     # %2 - artifact type
1465     # %3 - master name
1466     # %4 - master type
1467     ARTIFACT_NOT_VALID_IN_MASTER: {
1468         code: 400,
1469         message: "Error: artifact %1 in type %2 can not be exists under master %3 in type %4.",
1470         messageId: "SVC4622"
1471     }
1472     #---------SVC4623------------------------------
1473     # %1 - artifact name
1474     # %2 - artifact type
1475     # %3 - env name
1476     # %4 - existing env
1477     ARTIFACT_NOT_VALID_ENV: {
1478         code: 400,
1479         message: "Error: Artifact %1 in type %2 with env %3 already exists with another env %4",
1480         messageId: "SVC4623"
1481     }
1482     #---------SVC4624------------------------------
1483     # %1 - groups names
1484     # %2 - VF name
1485     # %3 - component type [VF ]
1486     GROUP_IS_MISSING: {
1487         code: 400,
1488         message: "Error: Invalid Content. The groups '%1' cannot be found under %2 %3.",
1489         messageId: "SVC4624"
1490     }
1491     #---------SVC4625------------------------------
1492     # %1 - groups name
1493     GROUP_ARTIFACT_ALREADY_ASSOCIATED: {
1494         code: 400,
1495         message: "Error: Invalid Content. Artifact already associated to group '%1'.",
1496         messageId: "SVC4625"
1497     }
1498     #---------SVC4626------------------------------
1499     # %1 - groups name
1500     GROUP_ARTIFACT_ALREADY_DISSOCIATED: {
1501         code: 400,
1502         message: "Error: Invalid Content. Artifact already dissociated from group '%1'.",
1503         messageId: "SVC4626"
1504     }
1505     #---------SVC4627------------------------------
1506     # %1 - property name
1507     # %2 - group name
1508     # %3 - group type name
1509     GROUP_PROPERTY_NOT_FOUND: {
1510         code: 400,
1511         message: "Error: property %1 listed in group %2 is not exist in group type %3.",
1512         messageId: "SVC4627"
1513     }
1514     #---------SVC4628------------------------------
1515     # %1 - csarUUID
1516     # %2 - VF name
1517     VSP_ALREADY_EXISTS: {
1518         code: 400,
1519         message: "Error: The VSP with UUID %1 was already imported for VF %2. Please select another or update the existing VF.",
1520         messageId: "SVC4628"
1521     }
1522     #---------SVC4629------------------------------
1523     # %1 - VF name
1524     MISSING_CSAR_UUID: {
1525         code: 400,
1526         message: "Error: The Csar UUID or payload name is missing for VF %1.",
1527         messageId: "SVC4629"
1528     }
1529     #---------SVC4630------------------------------
1530     # %1 - VF name
1531     # %2 - new csarUUID
1532     # %3 - old csarUUID
1533     RESOURCE_LINKED_TO_DIFFERENT_VSP: {
1534         code: 400,
1535         message: "Error: Resource %1 cannot be updated using CsarUUID %2 since the resource is linked to a different VSP with csarUUID %3.",
1536         messageId: "SVC4630"
1537     }
1538     #---------SVC4631------------------------------
1539     # %1  - policy name
1540     POLICY_TYPE_ALREADY_EXIST: {
1541         code: 409,
1542         message: "Error: Policy type %1 already exists.",
1543         messageId: "SVC4631"
1544     }
1545     #---------SVC4632------------------------------
1546     # %1 - target name
1547     # %2 - policy type name
1548     TARGETS_NON_VALID: {
1549         code: 400,
1550         message: "Error: target %1 listed in policy type %2 is not a group or resource.",
1551         messageId: "SVC4632"
1552     }
1553     #---------SVC4633------------------------------
1554     # %1 - policy name
1555     TARGETS_EMPTY: {
1556         code: 400,
1557         message: "Error: Invalid Content. Policy %1 target list was provided but does not have values",
1558         messageId: "SVC4633"
1559     }
1560     #---------SVC4634------------------------------
1561     DATA_TYPE_CANNOT_BE_EMPTY: {
1562         code: 500,
1563         message: "Error: Data types are empty. Please import the data types.",
1564         messageId: "SVC4634"
1565     }
1566     #---------SVC4635------------------------------
1567     # %1 - csar uuid
1568     RESOURCE_FROM_CSAR_NOT_FOUND: {
1569         code: 400,
1570         message: "Error: resource from csar uuid %1 not found",
1571         messageId: "SVC4635"
1572     }
1573     #---------SVC4636------------------------------
1574     # %1 - Data type name
1575     DATA_TYPE_CANNOT_BE_UPDATED_BAD_REQUEST: {
1576         code: 400,
1577         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.',
1578         messageId: "SVC4636"
1579     }
1580     #-----------SVC4637---------------------------
1581     #%1 - attribute name
1582     ATTRIBUTE_NOT_FOUND: {
1583         code: 404,
1584         message: "Error: Requested '%1' attribute was not found.",
1585         messageId: "SVC4637"
1586     }
1587     #-----------SVC4638---------------------------
1588     #%1 - attribute name
1589     ATTRIBUTE_ALREADY_EXIST: {
1590         code: 409,
1591         message: "Error: Attribute with '%1' name already exists.",
1592         messageId: "SVC4638"
1593     }
1594     #-----------SVC4639---------------------------
1595     #%1 - property name
1596     PROPERTY_NAME_ALREADY_EXISTS: {
1597         code: 409,
1598         message: "Error: Property with '%1' name and different type already exists.",
1599         messageId: "SVC4639"
1600     }
1601     #-----------SVC4640---------------------------
1602     #%1 - property name
1603     INVALID_PROPERTY: {
1604         code: 409,
1605         message: "Error: Invalid property received.",
1606         messageId: "SVC4640"
1607     }
1608     #---------SVC4641-----------------------------
1609     #%1 - invalid filter
1610     #%2 - valid filters
1611     INVALID_FILTER_KEY: {
1612         code: 400,
1613         message: "Error: The filter %1 is not applicable. Please use one of the following filters: %2",
1614         messageId: "SVC4641"
1615     }
1616     #---------SVC4642-----------------------------
1617     #%1 - asset type
1618     #%2 - filter
1619     NO_ASSETS_FOUND: {
1620         code: 404,
1621         message: "No %1 were found to match criteria %2",
1622         messageId: "SVC4642"
1623     }
1624     #---------SVC4643------------------------------
1625     # %1 - "Resource"/"Product"
1626     # %2 - "sub-category name"
1627     # %3 - "category name"
1628     COMPONENT_SUB_CATEGORY_NOT_FOUND_FOR_CATEGORY: {
1629         code: 404,
1630         message: "Error: %1 sub-category '%2' not found under category '%3'.",
1631         messageId: "SVC4643"
1632     }
1633     #---------SVC4644------------------------------
1634     # %1 - Format
1635     CORRUPTED_FORMAT: {
1636         code: 400,
1637         message: "Error: %1 format is corrupted.",
1638         messageId: "SVC4644"
1639     }
1640     #---------SVC4645------------------------------
1641     # %1 - "groupType"
1642     INVALID_VF_MODULE_TYPE: {
1643         code: 400,
1644         message: "Error: Invalid group type '%1' (should be VfModule).",
1645         messageId: "SVC4645"
1646     }
1647     #---------SVC4646------------------------------
1648     # %1 - "groupName"
1649     INVALID_VF_MODULE_NAME: {
1650         code: 400,
1651         message: "Error: Invalid Content. Group name '%1' contains invalid characters",
1652         messageId: "SVC4646"
1653     }
1654
1655     #---------SVC4647------------------------------
1656     # %1 - "modifiedName"
1657     INVALID_VF_MODULE_NAME_MODIFICATION: {
1658         code: 400,
1659         message: "Error: Invalid VF Module name modification, can not modify '%1'",
1660         messageId: "SVC4647"
1661     }
1662     #---------SVC4648------------------------------
1663     # %1 - "inputId"
1664     # %2 - "componentId"
1665     INPUT_IS_NOT_CHILD_OF_COMPONENT: {
1666         code: 400,
1667         message: "Error: Input id: '%1' is not child of component id: '%2'",
1668         messageId: "SVC4648"
1669     }
1670     #---------SVC4649------------------------------
1671     # %1 - "groupName"
1672     GROUP_HAS_CYCLIC_DEPENDENCY: {
1673         code: 400,
1674         message: "Error: The group '%1' has cyclic dependency",
1675         messageId: "SVC4649"
1676     }
1677     #---------SVC4650------------------------------
1678     # %1 - "Component Type"
1679     # %2 - <ServiceName>
1680     # %3 - error description
1681     AAI_ARTIFACT_GENERATION_FAILED: {
1682         code: 500,
1683         message: "Error: %1 %2 automatic generation of artifacts failed. Description: %3",
1684         messageId: "SVC4650"
1685     }
1686     #---------SVC4651------------------------------
1687     PARENT_RESOURCE_DOES_NOT_EXTEND: {
1688         code: 400,
1689         message: "Error: Once resource is certified, derived_from can be changed only to a sibling",
1690         messageId: "SVC4651"
1691     }
1692     #---------SVC4652------------------------------
1693     # %1 - resource/service
1694     COMPONENT_INVALID_SUBCATEGORY: {
1695         code: 400,
1696         message: "Error: Invalid Content. Invalid %1 sub category.",
1697         messageId: "SVC4652"
1698     }
1699     #---------SVC4653------------------------------
1700     # %1 - group instance uniqueId
1701     # %2 - service uniqueId
1702     GROUP_INSTANCE_NOT_FOUND_ON_COMPONENT_INSTANCE: {
1703         code: 404,
1704         message: "Error: Requested group instance %1 was not found on component %2.",
1705         messageId: "SVC4653"
1706     }
1707     #---------SVC4654------------------------------
1708     # %1 - group property name
1709     # %2 - valid min limit value
1710     # %3 - valid max limit value
1711     INVALID_GROUP_MIN_MAX_INSTANCES_PROPERTY_VALUE: {
1712         code: 400,
1713         message: "Error: Value of %1 must be not higher than %2, and not lower than %3.",
1714         messageId: "SVC4654"
1715     }
1716     #---------SVC4655------------------------------
1717     # %1 - group property name
1718     # %2 - valid min limit value
1719     # %3 - valid max limit value
1720     INVALID_GROUP_INITIAL_COUNT_PROPERTY_VALUE: {
1721         code: 400,
1722         message: "Error: Value of %1 must be between %2 and %3.",
1723         messageId: "SVC4655"
1724     }
1725     #---------SVC4656------------------------------
1726     # %1 - group property name
1727     # %2 - lower/higher
1728     # %3 - valid max/min value
1729     INVALID_GROUP_PROPERTY_VALUE_LOWER_HIGHER: {
1730         code: 400,
1731         message: "Error: Value of %1 must be %2 or equals to %3.",
1732         messageId: "SVC4656"
1733     }
1734     #---------SVC4657------------------------------
1735     # %1 - certificationRequest / startTesting
1736     RESOURCE_VFCMT_LIFECYCLE_STATE_NOT_VALID: {
1737         code: 400,
1738         message: "Error - Lifecycle state %1 is not valid for resource of type VFCMT",
1739         messageId: "SVC4657"
1740     }
1741     #---------SVC4658------------------------------
1742     # %1 – asset type [service / resource ]
1743     # %2 – main asset uuid
1744     # %3 – not found asset type [service / resource]
1745     # %4 – not found asset name
1746     ASSET_NOT_FOUND_DURING_CSAR_CREATION: {
1747         code: 400,
1748         message: "Error: CSAR packaging failed for %1 %2. %3 %4 was not found",
1749         messageId: "SVC4658"
1750     }
1751     #---------SVC4659------------------------------
1752     # %1 – asset type [service / resource ]
1753     # %2 – main asset uuid
1754     # %3 – Artifact name
1755     # %4 – Artifact uuid
1756     ARTIFACT_PAYLOAD_NOT_FOUND_DURING_CSAR_CREATION: {
1757         code: 400,
1758         message: "Error: CSAR packaging failed for %1 %2. Artifact %3 [%4] was not found",
1759         messageId: "SVC4659"
1760     }
1761     #---------SVC4660------------------------------
1762     # %1 - assetType
1763     # %2 - matching generic node type name
1764     GENERIC_TYPE_NOT_FOUND: {
1765         code: 404,
1766         message: "Creation of %1 failed. Generic type %2 was not found",
1767         messageId: "SVC4660"
1768     }
1769     #---------SVC4661------------------------------
1770     # %1 - assetType
1771     # %2 - matching generic node type name
1772     TOSCA_SCHEMA_FILES_NOT_FOUND: {
1773         code: 400,
1774         message: "Error: CSAR packaging failed. TOSCA schema files for SDC-Version: %1 and Conformance-Level %2 were not found",
1775         messageId: "SVC4661"
1776     }
1777     #---------SVC4662------------------------------
1778     # %1 - file name
1779     # %2 - parser error
1780     TOSCA_PARSE_ERROR: {
1781         code: 400,
1782         message: "Error: Invalid TOSCA template in file %1. %2",
1783         messageId: "SVC4662"
1784     }
1785     #---------SVC4663------------------------------
1786     # %1 - max length
1787     RESOURCE_VENDOR_MODEL_NUMBER_EXCEEDS_LIMIT: {
1788         code: 400,
1789         message: "Error: Invalid Content. Resource vendor model number exceeds limit of %1 characters.",
1790         messageId: "SVC4663"
1791     }
1792     #---------SVC4664------------------------------
1793     INVALID_RESOURCE_VENDOR_MODEL_NUMBER: {
1794         code: 400,
1795         message: 'Error: Invalid Content. Resource vendor model number is not allowed to contain characters like <>:"\/|?* and space characters other than regular space.',
1796         messageId: "SVC4664"
1797     }
1798
1799     #---------SVC4669-----------------------------
1800     INVALID_RESOURCE_TYPE: {
1801         code: 400,
1802         message: "Error: Invalid resource type.",
1803         messageId: "SVC4669"
1804     }
1805     #---------SVC4670------------------------------
1806     # %1 - artifactname
1807     # %2 - validname
1808     ARTIFACT_NAME_INVALID: {
1809         code: 400,
1810         message: "Error: Artifact name '%1' is invalid. Only the following characters are allowed in the Artifact Name: '%2'.",
1811         messageId: "SVC4670"
1812     }
1813     #---------SVC4671------------------------------
1814     # %1 - VSP name
1815     # %2 - VFC name
1816     CFVC_LOOP_DETECTED: {
1817         code: 400,
1818         message: 'Error: VSP %1 cannot be imported. The VSP contains internal loop in VFC %2',
1819         messageId: "SVC4671"
1820     }
1821     #---------SVC4672------------------------------
1822     # %1 - capability uniqueId
1823     # %2 - instance uniqueId
1824     # %3 - container uniqueId
1825     CAPABILITY_OF_INSTANCE_NOT_FOUND_ON_CONTAINER: {
1826         code: 404,
1827         message: "Error: Requested capability %1 of instance %2 was not found on the container %3.",
1828         messageId: "SVC4672"
1829     }
1830     #---------SVC4673------------------------------
1831     # %1 - requirement uniqueId
1832     # %2 - instance uniqueId
1833     # %3 - container uniqueId
1834     REQUIREMENT_OF_INSTANCE_NOT_FOUND_ON_CONTAINER: {
1835         code: 404,
1836         message: "Error: Requested requirement %1 of instance %2 was not found on the container %3.",
1837         messageId: "SVC4673"
1838     }
1839     #---------SVC4674-----------------------------
1840     # %1 - relation Id
1841     # %2 - container uniqueId
1842     RELATION_NOT_FOUND: {
1843         code: 404,
1844         message: "Error: Requested relation %1 was not found on the container %2.",
1845         messageId: "SVC4674"
1846     }
1847
1848
1849     #---------SVC4675------------------------------
1850     INVALID_SERVICE_STATE: {
1851         code: 409,
1852         message: "Service state is invalid for this action",
1853         messageId: "SVC4675"
1854     }
1855
1856     #---------SVC4676------------------------------
1857     INVALID_RESPONSE_FROM_PROXY: {
1858         code: 502,
1859         message: "Error: The server was acting as a gateway or proxy and received an invalid response from the upstream server",
1860         messageId: "SVC4676"
1861     }
1862
1863     #---------SVC4677------------------------------
1864     API_RESOURCE_NOT_FOUND: {
1865         code: 404,
1866         message: "Error: Requested '%1' was not found.",
1867         messageId: "SVC4677"
1868     }
1869
1870     #---------SVC4678------------------------------
1871     BAD_REQUEST_MISSING_RESOURCE: {
1872         code: 400,
1873         message: "Error: The required resource name/id  is missing in the request",
1874         messageId: "SVC4678"
1875     }
1876     #---------SVC4679------------------------------
1877     # %1 forwarding path name maximum length
1878     FORWARDING_PATH_NAME_MAXIMUM_LENGTH: {
1879         code: 400,
1880         message: "Forwarding path name too long, , maximum allowed 200 characters : '%1'.",
1881         messageId: "SVC4679"
1882     }
1883     #---------SVC4680------------------------------
1884     # %1 Forwarding path name already in use
1885     FORWARDING_PATH_NAME_ALREADY_IN_USE: {
1886         code: 400,
1887         message: "Forwarding path name already in use : '%1'.",
1888         messageId: "SVC4680"
1889     }
1890     #---------SVC4681------------------------------
1891     # %1 Forwarding path name empty
1892     FORWARDING_PATH_NAME_EMPTY: {
1893         code: 400,
1894         message: "Forwarding Path Name can't be empty .",
1895         messageId: "SVC4681"
1896     }
1897     #---------SVC4682------------------------------
1898     # %1 - resource uniqueId
1899     # %2 - resource component type
1900     RESOURCE_CANNOT_CONTAIN_POLICIES: {
1901         code: 400,
1902         message: "Error: The resource %1 type of %2 cannot contain policies.",
1903         messageId: "SVC4682"
1904     }
1905     #---------SVC4683------------------------------
1906     # %1 - policy uniqueId
1907     # %2 - component uniqueId
1908     POLICY_NOT_FOUND_ON_CONTAINER: {
1909         code: 404,
1910         message: "Error: Requested policy %1 was not found on the container %2.",
1911         messageId: "SVC4683"
1912     }
1913     #---------SVC4684------------------------------
1914     # %1 - policy name
1915     INVALID_POLICY_NAME: {
1916         code: 400,
1917         message: "Error: Invalid policy name %1 received.",
1918         messageId: "SVC4684"
1919     }
1920     #---------SVC4801------------------------------
1921     # %1 - policy type
1922     POLICY_TYPE_IS_INVALID: {
1923         code: 400,
1924         message: "Error: Invalid content. Policy type %1 does not exist",
1925         messageId: "SVC4801"
1926     }
1927
1928     #---------SVC4802------------------------------
1929     # %1 - policy name
1930     POLICY_MISSING_POLICY_TYPE: {
1931         code: 400,
1932         message: "Error: Invalid content. Type name is not defined for policy %1",
1933         messageId: "SVC4802"
1934     }
1935
1936     #---------SVC4685------------------------------
1937     # %1 - policy name
1938     POLICY_NAME_ALREADY_EXIST: {
1939         code: 409,
1940         message: "Error: The policy with the name %1 already exists.",
1941         messageId: "SVC4685"
1942     }
1943     #---------SVC4686------------------------------
1944     # %1 - policy name
1945     POLICY_TARGET_DOES_NOT_EXIST: {
1946         code: 400,
1947         message: "Error: The targets %1 are not valid, all targets have to be on the topologyTemplate.",
1948         messageId: "SVC4686"
1949     }
1950     #---------SVC4687------------------------------
1951     # %1 - policy type
1952     # %2 - component type
1953     EXCLUDED_POLICY_TYPE: {
1954         code: 400,
1955         message: "Error: The policy of the type %1 excluded to add to a component of the type %2.",
1956         messageId: "SVC4687"
1957     }
1958     #---------SVC4688------------------------------
1959     # %1 - group type
1960     # %2 - component type
1961     GROUP_TYPE_ILLEGAL_PER_COMPONENT: {
1962         code: 400,
1963         message: "Error: group type %1 not permitted in component of type %2",
1964         messageId: "SVC4688"
1965     }
1966     #---------SVC4689------------------------------
1967     # %1 - group type
1968     # %2 - component type
1969     POLICY_TARGET_TYPE_DOES_NOT_EXIST: {
1970         code: 400,
1971         message: "Error: The target types %1 are not valid.",
1972         messageId: "SVC4689"
1973     }
1974
1975     #---------SVC4690------------------------------
1976     # %1 forwarding path protocol maximum length
1977     FORWARDING_PATH_PROTOCOL_MAXIMUM_LENGTH: {
1978         code: 400,
1979         message: "Forwarding path protocol too long, , maximum allowed 200 characters : '%1'.",
1980         messageId: "SVC4690"
1981     }
1982
1983     #---------SVC4691------------------------------
1984     # %1 forwarding path destination port maximum length
1985     FORWARDING_PATH_DESTINATION_PORT_MAXIMUM_LENGTH: {
1986         code: 400,
1987         message: "Forwarding path destination port too long, , maximum allowed 200 characters : '%1'.",
1988         messageId: "SVC4691"
1989     }
1990
1991     #---------POL4692------------------------------
1992     MISSING_OLD_COMPONENT_INSTANCE: {
1993         code: 400  ,
1994         message: "Error: Missing 'componentInstanceId' HTTP param.",
1995         messageId: "POL4692"
1996     }
1997
1998     #---------POL4693------------------------------
1999     MISSING_NEW_COMPONENT_INSTANCE: {
2000         code: 400  ,
2001         message: "Error: Missing 'newComponentInstanceId' HTTP param.",
2002         messageId: "POL4693"
2003     }
2004
2005     #---------SVC4694------------------------------
2006     # %1 External Reference Value
2007     EXT_REF_NOT_FOUND: {
2008         code: 404,
2009         message: "Error: External Reference '%1' was not found.",
2010         messageId: "SVC4694"
2011     }
2012     #---------SVC4695-----------------------------
2013     # %1 - Interface Operation Name
2014     INTERFACE_OPERATION_NAME_ALREADY_IN_USE: {
2015         code: 409,
2016         message: "Error: Interface Operation name '%1' already in use, Your current changes will not be saved.",
2017         messageId: "SVC4695"
2018     }
2019     #---------SVC4696-----------------------------
2020     # %1 - Interface Operation Name
2021     INTERFACE_OPERATION_NAME_INVALID: {
2022         code: 400,
2023         message: "Error: Interface Operation name '%1' is Invalid, Operation name should not contain special character, space and should not be greater than 200 characters.",
2024         messageId: "SVC4696"
2025     }
2026     #---------SVC4697-----------------------------
2027     INTERFACE_OPERATION_NAME_MANDATORY: {
2028         code: 400,
2029         message: "Error: Interface Operation name is mandatory, Operation name can't be empty.",
2030         messageId: "SVC4697"
2031     }
2032     #---------SVC4698-----------------------------
2033     # %1 - Interface type
2034     INTERFACE_OPERATION_INVALID_FOR_LOCAL_TYPE: {
2035         code: 400,
2036         message: "Error: Invalid input, only one operation is allowed in local interface type '%1'.",
2037         messageId: "SVC4698"
2038     }
2039     #---------SVC4699-----------------------------
2040     # %1 - Interface Operation input parameter name
2041     INTERFACE_OPERATION_INPUT_NAME_ALREADY_IN_USE: {
2042         code: 400,
2043         message: "Error: Interface Operation input parameter name '%1' already in use, Your current changes will not be saved.",
2044         messageId: "SVC4699"
2045     }
2046     #---------SVC4700-----------------------------
2047     INTERFACE_OPERATION_INPUT_NAME_MANDATORY: {
2048         code: 400,
2049         message: "Error: Interface operation input parameter name should not be empty.",
2050         messageId: "SVC4700"
2051     }
2052     #---------SVC4701-----------------------------
2053     # %1 - component Id
2054     INTERFACE_OPERATION_NOT_FOUND: {
2055         code: 404,
2056         message: "Error: Interface operation not found in the component '%1'.",
2057         messageId: "SVC4701"
2058     }
2059     #---------SVC4702-----------------------------
2060     INTERFACE_OPERATION_NOT_DELETED: {
2061         code: 400,
2062         message: "Error: Failed to delete interface operation.",
2063         messageId: "SVC4702"
2064     }
2065     #SVC4732
2066     INTERFACE_UNKNOWN: {
2067         code: 400,
2068         message: "Error: The interface '%1' does not exists in the database.",
2069         messageId: "SVC4732"
2070     }
2071     #SVC4733
2072     INTERFACE_OPERATION_NOT_DEFINED: {
2073         code: 400,
2074         message: "Error: The operation '%1' does not exists in the interface '%2'.",
2075         messageId: "SVC4733"
2076     }
2077     #-----------SVC4692---------------------------
2078     RESOURCE_LIFECYCLE_STATE_NOT_VALID: {
2079         code: 400,
2080         message: "Error: Lifecycle state %1 is not valid for resource",
2081         messageId: "SVC4692"
2082     }
2083     #-----------SVC4693---------------------------
2084     #%1 - component name
2085     COMPONENT_IS_ARCHIVED: {
2086         code: 400,
2087         message: "Error: Component %1 is archived",
2088         messageId: "SVC4693"
2089     }
2090     #-----------SVC4703---------------------------
2091     #%1 - component name
2092     COMPONENT_IS_NOT_HIHGEST_CERTIFIED: {
2093         code: 400,
2094         message: "Error: Component %1 is not highest certified",
2095         messageId: "SVC4703"
2096     }
2097     #---------SVC4704------------------------------
2098     # %1 - "service"/"VF"
2099     # %2 - "Resource name"
2100     ARCHIVED_ORIGINS_FOUND: {
2101         code: 403,
2102         message: "Error: Action is not permitted as your '%1' '%2' includes archived resources",
2103         messageId: "SVC4704"
2104     }
2105     #---------SVC4705------------------------------
2106     # %1-artifact name
2107     ARTIFACT_PAYLOAD_EMPTY: {
2108         code: 400,
2109         message: "Error: Invalid content. Uploaded file %1 is empty. Please retry with the correct file.",
2110         messageId: "SVC4705"
2111     }
2112     #---------SVC4800------------------------------
2113     # %1 - "component id"
2114     UPDATE_CATALOG_FAILED: {
2115         code: 403,
2116         message: "Error: update catalog for component '%1' failed.",
2117         messageId: "SVC4800"
2118     }
2119     #---------SVC4706------------------------------
2120     # %1-input(s) name(s) string
2121     INPUTS_NOT_FOUND: {
2122         code: 400,
2123         message: "Error: missing input value(s) %1.",
2124         messageId: "SVC4706"
2125     }
2126     #---------SVC4707-----------------------------
2127     # %1 – asset type [service / resource ]
2128     # %2 – main asset uuid
2129     ERROR_DURING_CSAR_CREATION: {
2130         code: 404,
2131         message: "Error: CSAR packaging failed for %1 %2.",
2132         messageId: "SVC4706"
2133     }
2134     #---------SVC4708-----------------------------
2135     # %1 - Interface Operation input property name, component type
2136     INTERFACE_OPERATION_INPUT_PROPERTY_NOT_FOUND_IN_COMPONENT: {
2137         code: 404,
2138         message: "Error: Interface operation input parameter property '%1' not found in '%2' input properties, capability properties or outputs of other operations.",
2139         messageId: "SVC4708"
2140     }
2141     #---------SVC4709-----------------------------
2142     # %1 - Interface Operation output parameter name
2143     INTERFACE_OPERATION_OUTPUT_NAME_ALREADY_IN_USE: {
2144         code: 400,
2145         message: "Error: Interface Operation output parameter name '%1' already in use, Your current changes will not be saved.",
2146         messageId: "SVC4708"
2147     }
2148     #---------SVC4710-----------------------------
2149     INTERFACE_OPERATION_OUTPUT_NAME_MANDATORY: {
2150         code: 400,
2151         message: "Error: Interface operation output parameter name should not be empty.",
2152         messageId: "SVC4710"
2153     }
2154     #---------SVC4711-----------------------------
2155     # %1 - interface Id
2156     INTERFACE_NOT_FOUND_IN_COMPONENT: {
2157         code: 404,
2158         message: "Error: Interface not found in the component '%1'.",
2159         messageId: "SVC4711"
2160     }
2161     #---------SVC4709-----------------------------
2162     INVALID_PROPERTY_CONSTRAINTS: {
2163       # %1 – property constraints type
2164       # %2 – received property constraints value
2165       # %3 – property type
2166         code: 400,
2167         message: "Error: Invalid %1 %2 for the type %3 have been received.",
2168         messageId: "SVC4709"
2169     }
2170     #---------SVC4710-----------------------------
2171     INVALID_PROPERTY_CONSTRAINTS_FORMAT: {
2172       # %1 – received property constraints json section
2173         code: 400,
2174         message: "Error: Invalid format of the received property constraints section: %1. The property constraints section should be a list.",
2175         messageId: "SVC4710"
2176     }
2177     #---------SVC4711-----------------------------
2178     CANNOT_DELETE_VALID_VALUES: {
2179       # %1 – property constraints type
2180       # %2 – missing valid values
2181         code: 400,
2182         message: "Error: Deletion of existing %1 is not permitted on an update. Missing values: %2",
2183         messageId: "SVC4711"
2184     }
2185     #---------SVC4712------------------------------
2186     MISSING_PROPERTY_NAME: {
2187         code: 400  ,
2188         message: "Error: Invalid Content. Missing mandatory parameter 'name'." ,
2189         messageId: "SVC4712"
2190     }
2191     #---------SVC4713------------------------------
2192     MISSING_PROPERTY_VALUE: {
2193         code: 400  ,
2194         message: "Error: Invalid Content. Missing mandatory parameter 'value'." ,
2195         messageId: "SVC4713"
2196     }
2197
2198     #---------SVC4712---------------------------
2199     INVALID_INSTANTIATION_TYPE: {
2200         code: 400,
2201         message: "Invalid instantiationType: %1",
2202         messageId: "SVC4712"
2203     }
2204
2205     #----------SVC4713---------------------------
2206     MISSING_ECOMP_GENERATED_NAMING: {
2207         code: 400,
2208         message: "Missing ecompGeneratedNaming property",
2209         messageId: "SVC4713"
2210     }
2211
2212     #-----------SVC4714--------------------------
2213     NAMING_POLICY_EXCEEDS_LIMIT: {
2214         code: 400,
2215         message: "Error: Invalid Content. Naming policy exceeds limit of %1 characters.",
2216         messageId: "SVC4714"
2217     }
2218
2219     #---------SVC4715------------------------------
2220     INVALID_NAMING_POLICY: {
2221         code: 400,
2222         message: 'Error: Invalid Content. Naming policy is not allowed to contain characters like <>:"\/|?* and space characters other than regular space.',
2223         messageId: "SVC4715"
2224     }
2225
2226     #---------SVC4716------------------------------
2227     INVALID_ENVIRONMENT_CONTEXT: {
2228         code: 400,
2229         message: 'Error: Invalid Environment context: %1',
2230         messageId: "SVC4716"
2231     }
2232
2233     #---------SVC4717------------------------------
2234     UNSUPPORTED_DISTRIBUTION_STATUS: {
2235         code: 400,
2236         message: 'Error: Unsupported distribution action: %1',
2237         messageId: "SVC4717"
2238     }
2239     #---------SVC4718------------------------------
2240     CONTAINER_CANNOT_CONTAIN_INSTANCE: {
2241       # %1 - "container type"
2242       # %2- “component type”
2243         code: 400  ,
2244         message: "Error : %1 can’t contain component instance %2" ,
2245         messageId: "SVC4718"
2246     }
2247     #---------SVC4719------------------------------
2248     CONTAINER_CANNOT_CONTAIN_COMPONENT_IN_STATE: {
2249       # %1 - "container type"
2250       # %2- "lifecycle state"
2251         code: 400  ,
2252         message: "Error: Container %1 can’t contain component in state %2" ,
2253         messageId: "SVC4719"
2254     }
2255
2256     #---------SVC4720------------------------------
2257     MISSING_MANDATORY_PROPERTY: {
2258       # %1 - "property name"
2259         code: 400  ,
2260         message: "Error: Missing mandatory %1 property" ,
2261         messageId: "SVC4720"
2262     }
2263
2264     #---------SVC4721------------------------------
2265     MANDATORY_PROPERTY_MISSING_VALUE: {
2266       # %1 - "property name"
2267         code: 400  ,
2268         message: "Error: Missing value for the mandatory %1 property" ,
2269         messageId: "SVC4721"
2270     }
2271     #---------SVC4712-----------------------------
2272     INTERFACE_LIFECYCLE_TYPES_NOT_FOUND: {
2273         code: 404,
2274         message: "Error: Interface Lifecycle types not found.",
2275         messageId: "SVC4712"
2276     }
2277     #---------SVC4713-----------------------------
2278     # %1 - Interface Operation Name
2279     INTERFACE_OPERATION_INVALID_FOR_GLOBAL_TYPE: {
2280         code: 400,
2281         message: "Error: Invalid input, only pre-defined operation names are allowed in global interface type '%1'",
2282         messageId: "SVC4713"
2283     }
2284
2285     #---------SVC4714-----------------------------
2286     NODE_FILTER_NOT_FOUND: {
2287         code: 400,
2288         message: "Error: Node Filter was not found",
2289         messageId: "SVC4714"
2290     }
2291     #---------SVC4715----------------------------
2292     UNSUPPORTED_VALUE_PROVIDED: {
2293         code: 400,
2294         message: "Error: Supported value type is %1 for %2 property. Provided Value: %3",
2295         messageId: "SVC4715"
2296     }
2297     #---------SVC4716----------------------------
2298     # %1 - Property Name
2299     SELECTED_PROPERTY_NOT_PRESENT: {
2300         code: 400,
2301         message: "Error: %1 property does not exists in Service anymore.",
2302         messageId: "SVC4716"
2303     }
2304
2305     #---------SVC4184----------------------------
2306     # %1 - Source type
2307     # %2 - Property Type
2308     # %3 - Property Name
2309     FILTER_PROPERTY_NOT_FOUND:
2310         code: 400
2311         message: "%1 %2 %3 does not exist."
2312         messageId: "SVC4184"
2313
2314     #---------SVC4718----------------------------
2315     # %1 - Property Name
2316     # %2 - Operator Name
2317     UNSUPPORTED_OPERATOR_PROVIDED: {
2318         code: 400,
2319         message: "Error: %1 property does not support %2 operator.",
2320         messageId: "SVC4718"
2321     }
2322
2323     #---------SVC4719----------------------------
2324     CONSTRAINT_FORMAT_INCORRECT: {
2325         code: 400,
2326         message: "Error: Constraint provided does not contains expected values.",
2327         messageId: "SVC4719"
2328     }
2329
2330     #---------SVC4182----------------------------
2331     # %1 - Property Name
2332     # %2 - Operator Type
2333     SOURCE_TARGET_PROPERTY_TYPE_MISMATCH: {
2334         code: 400,
2335         message: "Error: Property '%1' type '%2' does not match with property '%3' type '%4'.",
2336         messageId: "SVC4182"
2337     }
2338
2339     #---------SVC4721----------------------------
2340     # %1 - Property Type
2341     # %2 - Operator Type
2342     UNSUPPORTED_PROPERTY_TYPE: {
2343         code: 400,
2344         message: "Error: Property type %1 provided against %2 is not supported for static value.",
2345         messageId: "SVC4721"
2346     }
2347
2348     #---------SVC4722------------------------------
2349     # %1 Directive value set
2350     DIRECTIVES_INVALID_VALUE: {
2351         code: 404,
2352         message: "Error: Invalid directive value : '%1' .",
2353         messageId: "SVC4722"
2354     }
2355     #---------SVC4723-----------------------------
2356     # %1 - Interface Operation output name
2357     INTERFACE_OPERATION_MAPPED_OUTPUT_MODIFIED: {
2358         code: 400,
2359         message: "Error: Cannot update or delete interface operation output(s) '%1' mapped to an operation input",
2360         messageId: "SVC4723"
2361     }
2362     #---------SVC4724-----------------------------
2363     # %1 - Interface Operation output name
2364     INTERFACE_OPERATION_DELETE_WITH_MAPPED_OUTPUT: {
2365         code: 400,
2366         message: "Error: Cannot delete interface operation with output(s) '%1' mapped to another operation input",
2367         messageId: "SVC4724"
2368     }
2369     #---------SVC4725-----------------------------
2370     INVALID_CONSUMPTION_TYPE: {
2371         code: 400,
2372         message: "Error: Given value is different than input type. Needs to be %1",
2373         messageId: "SVC4725"
2374     }
2375     #---------SVC4726-----------------------------
2376     INVALID_PROPERTY_VALUES: {
2377         code: 400,
2378         message: "Error: Invalid property values provided:\n %1",
2379         messageId: "SVC4726"
2380     }
2381     #---------SVC4727------------------------------
2382     INVALID_PROPERTY_NAME: {
2383         code: 400,
2384         message: "Error: Property name contains invalid characters. It should have only letters, numbers and underscores.",
2385         messageId: "SVC4727"
2386     }
2387
2388     #---------SVC4728------------------------------
2389     FAILED_TO_CREATE_OR_UPDATE_CAPABILITY_PROPERTIES: {
2390         code: 500,
2391         message: "Error: Failed to create or update capabilities properties",
2392         messageId: "SVC4728"
2393     }
2394
2395     #---------SVC4729------------------------------
2396     # %1 - resource Id
2397     CAPABILITY_PROPERTIES_NOT_FOUND: {
2398         code: 400,
2399         message: "Error: Capability properties not found in the resource '%1'.",
2400         messageId: "SVC4729"
2401     }
2402     #---------SVC4730------------------------------
2403     # %1 - property name
2404     PROPERTY_EXCEEDS_LIMIT: {
2405         code: 400,
2406         message: "Error: Invalid Content. %1 exceeds limit.",
2407         messageId: "SVC4722"
2408     }
2409     #---------SVC4731------------------------------
2410     INVALID_PROPERY: {
2411       # %1 - property name
2412         code: 400,
2413         message: 'Error: Invalid Content. %1 has invalid format.',
2414         messageId: "SVC4723"
2415     }
2416     #---------SVC4734------------------------------
2417     # %1 - list of validation errors
2418     INVALID_PM_DICTIONARY_FILE: {
2419         code: 400,
2420         message: 'Error: Invalid PM Dictionary File. %1',
2421         messageId: "SVC4734"
2422     }
2423     #-----------SVC4735---------------------------
2424     #%1 - input name
2425     INPUT_ALREADY_EXIST: {
2426         code: 409,
2427         message: "Error: Input with '%1' name already exists.",
2428         messageId: "SVC4735"
2429     }
2430     #---------SVC4736------------------------------
2431     INVALID_INPUT_NAME: {
2432         code: 400,
2433         message: "Error: Input name contains invalid characters. It should have only letters, numbers and underscores.",
2434         messageId: "SVC4736"
2435     }
2436     #---------SVC4139------------------------------
2437     # %1 - The action that is not supported
2438     NOT_SUPPORTED: {
2439         code: 400,
2440         message: '%1 is not yet supported',
2441         messageId: "SVC4139"
2442     }
2443     #---------SVC4140------------------------------
2444     # %1 - Component uid
2445     COMPONENT_FIND_ERROR: {
2446         code: 500,
2447         message: "An unexpected error occurred while retrieving the component '%1'.",
2448         messageId: "SVC4140"
2449     }
2450     #---------SVC4141------------------------------
2451     # %1 - Component uid
2452     COMPONENT_CAPABILITIES_FIND_ERROR: {
2453         code: 500,
2454         message: "An unexpected error occurred while retrieving the component '%1' capabilities.",
2455         messageId: "SVC4141"
2456     }
2457     #---------SVC4142------------------------------
2458     # %1 - Component uid or name
2459     COMPONENT_NOT_FOUND: {
2460         code: 404,
2461         message: "Component '%1' was not found.",
2462         messageId: "SVC4142"
2463     }
2464     #---------SVC4143------------------------------
2465     # %1 - Capability name
2466     COMPONENT_INSTANCE_CAPABILITY_UPDATE_ERROR: {
2467         code: 500,
2468         message: "An unexpected error occurred while updating the capability '%1'.",
2469         messageId: "SVC4143"
2470     }
2471
2472     #---------SVC4144------------------------------
2473     # %1 - "Model name"
2474     MODEL_ALREADY_EXISTS: {
2475         code: 409,
2476         message: "Error: Model name '%1' already exists.",
2477         messageId: "SVC4144"
2478     }
2479
2480     #---------SVC4145------------------------------
2481     # %1 - "Model name"
2482     INVALID_MODEL: {
2483         code: 400,
2484         message: "Invalid model '%1'.",
2485         messageId: "SVC4145"
2486     }
2487
2488     #---------SVC4146------------------------------
2489     MODEL_IMPORTS_IS_EMPTY: {
2490         code: 400,
2491         message: "Given model imports zip is empty.",
2492         messageId: "SVC4146"
2493     }
2494
2495     #---------SVC4147------------------------------
2496     COULD_NOT_READ_MODEL_IMPORTS: {
2497         code: 400,
2498         message: "Could not read imports zip.",
2499         messageId: "SVC4147"
2500     }
2501
2502     #---------SVC4148------------------------------
2503     # %1 - "Model name"
2504     MODEL_NOT_FOUND: {
2505         code: 404,
2506         message: "Error: Model name '%1' not found. Please, make sure the model is created.",
2507         messageId: "SVC4148"
2508     }
2509
2510     #---------SVC4149------------------------------
2511     MODEL_NAME_CANNOT_BE_EMPTY: {
2512         code: 409,
2513         message: "Error: Model name cannot be empty.",
2514         messageId: "SVC4149"
2515     }
2516
2517     #-----------SVC4150---------------------------
2518     # %1 - "Component name"
2519     # %2 - "Model name"
2520     COMPONENT_WITH_MODEL_ALREADY_EXIST: {
2521         code: 409,
2522         message: "Error: Component %1 with Model %2 already exist.",
2523         messageId: "SVC4150"
2524     }
2525     #-----------SVC4151---------------------------
2526     # %1 - "Component name"
2527     # %2 - "Vendor release"
2528     # %3 - "Model name"
2529     COMPONENT_WITH_VENDOR_RELEASE_ALREADY_EXISTS_IN_MODEL: {
2530         code: 409,
2531         message: "Error: Component '%1' with Vendor Release '%2' already exists in Model '%3'.",
2532         messageId: "SVC4151"
2533     }
2534     #-----------SVC4152---------------------------
2535     # %1 - "Component name"
2536     # %2 - "Vendor release"
2537     COMPONENT_WITH_VENDOR_RELEASE_ALREADY_EXISTS: {
2538         code: 409,
2539         message: "Error: Component '%1' with Vendor Release '%2' already exists.",
2540         messageId: "SVC4152"
2541     }
2542
2543     #-----------SVC4153---------------------------
2544     # %1 - "Model name"
2545     DATA_TYPES_NOT_LOADED: {
2546         code: 500,
2547         message: "Could not fetch data types from data base with model %1",
2548         messageId: "SVC4153"
2549     }
2550
2551     #-----------SVC4154---------------------------
2552     # %1 - "Model name"
2553     UNKNOWN_MODEL_TYPE: {
2554         code: 400,
2555         message: "Error: Model type  %1 not known in the system",
2556         messageId: "SVC4154"
2557     }
2558
2559     #-----------SVC4154---------------------------
2560     CSAR_TOSCA_IMPORTS_ERROR: {
2561         code: 500,
2562         message: "Error: An error has occurred while including the default TOSCA imports in the CSAR",
2563         messageId: "SVC4154"
2564     }
2565
2566     #-----------SVC4155---------------------------
2567     # %1 - "VSP id"
2568     # %2 - "VSP version id"
2569     VSP_FIND_ERROR: {
2570         code: 500,
2571         message: "An error has occurred while retrieving the Vendor Software Product of id '%1', version id '%2'",
2572         messageId: "SVC4155"
2573     }
2574
2575     #-----------SVC4156---------------------------
2576     # %1 - "VSP id"
2577     # %2 - "VSP version id"
2578     VSP_NOT_FOUND: {
2579         code: 404,
2580         message: "Could not find Vendor Software Product of id '%1', version id '%2'",
2581         messageId: "SVC4156"
2582     }
2583
2584     #-----------SVC4157---------------------------
2585     # %1 - "The model name"
2586     # %2 - "List of allowed models"
2587     VSP_MODEL_NOT_ALLOWED: {
2588         code: 400,
2589         message: "The Model '%1' is not allowed for the imported Vendor Software Product. Allowed Models: '%2'",
2590         messageId: "SVC4157"
2591     }
2592
2593     #---------SVC4158-----------------------------
2594     # %1 - Valid artifact label name
2595     INVALID_ARTIFACT_LABEL_NAME: {
2596         code: 400,
2597         message: "Invalid label name. Only the following characters are allowed in label name: '%1'",
2598         messageId: "SVC4158"
2599     }
2600
2601     #---------SVC4159-----------------------------
2602     # %1 - The model name
2603     COULD_NOT_DELETE_MODEL: {
2604         code: 500,
2605         message: "Could not delete the model '%1'.",
2606         messageId: "SVC4159"
2607     }
2608
2609     #---------SVC4160-----------------------------
2610     # %1 - The model name
2611     COULD_NOT_DELETE_MODEL_ELEMENTS: {
2612         code: 500,
2613         message: "Could not delete the model '%1' elements.",
2614         messageId: "SVC4160"
2615     }
2616     #---------SVC4161-----------------------------
2617     INVALID_NODE_TYPES_YAML: {
2618         code: 400,
2619         message: "Invalid node_types TOSCA yaml",
2620         messageId: "SVC4161"
2621     }
2622
2623     #---------SVC4162-----------------------------
2624     # %1 - The janusgraph status
2625     FAILED_CREATE_ARTIFACTS_TYPES: {
2626         code: 500,
2627         message: "Failed to create artifact types with status '%1'.",
2628         messageId: "SVC4162"
2629     }
2630
2631     #---------SVC4163-----------------------------
2632     # %1 - The janusgraph status
2633     ARTIFACT_TYPE_ALREADY_EXIST: {
2634         code: 409,
2635         message: "Artifact type '%1' already exist.",
2636         messageId: "SVC4163"
2637     }
2638
2639     #---------SVC4692-----------------------------
2640     # %1 - Component name
2641     COMPONENT_NOT_ARCHIVED: {
2642         code: 403,
2643         message: "Component '%1' is not archived",
2644         messageId: "SVC4692"
2645     }
2646
2647     #---------SVC4693-----------------------------
2648     # %1 - List of services
2649     COMPONENT_IN_USE_BY_ANOTHER_COMPONENT: {
2650         code: 403,
2651         message: "Component is in use by '%1'",
2652         messageId: "SVC4693"
2653     }
2654
2655     #---------SVC4164-----------------------------
2656     # %1 - componentType
2657     # %2 - component name
2658     CANNOT_DELETE_SYSTEM_DEPLOYED_RESOURCES: {
2659         code: 409,
2660         message: "System deployed '%1' cannot be deleted '%2'",
2661         messageId: "SVC4164"
2662     }
2663
2664     #---------SVC4165-----------------------------
2665     # %1 - input origin
2666     TOSCA_GET_FUNCTION_INPUTS_ONLY_SELF_ERROR: {
2667         code: 400,
2668         message: "Invalid get_input definition. Inputs can only be get from SELF, the given origin was '%1'",
2669         messageId: "SVC4165"
2670     }
2671
2672     #---------SVC4166-----------------------------
2673     # %1 - input name
2674     # %2 - input origin
2675     TOSCA_GET_FUNCTION_INPUTS_NOT_FOUND: {
2676         code: 404,
2677         message: "The given input '%1' was not found on '%2'.",
2678         messageId: "SVC4166"
2679     }
2680
2681     #---------SVC4167-----------------------------
2682     # %1 - Tosca function
2683     # %2 - Referred input type
2684     # %3 - Selected property type
2685     TOSCA_GET_FUNCTION_TYPE_DIVERGE: {
2686         code: 400,
2687         message: "Could not set %1. Referred input type '%2' diverges from the selected property type '%3'.",
2688         messageId: "SVC4167"
2689     }
2690
2691     #---------SVC4168-----------------------------
2692     # %1 - Tosca function
2693     # %2 - Referred input schema
2694     # %3 - Selected property schema
2695     TOSCA_GET_FUNCTION_SCHEMA_DIVERGE: {
2696         code: 400,
2697         message: "Could not set %1. Referred input schema '%2' diverges from the selected property schema '%3'.",
2698         messageId: "SVC4168"
2699     }
2700
2701     #---------SVC4169-----------------------------
2702     # %1 - Property type (property|input|attribute)
2703     # %1 - Property name
2704     # %2 - Property origin
2705     TOSCA_GET_FUNCTION_PROPERTY_NOT_FOUND: {
2706         code: 404,
2707         message: "The given %1 '%2' was not found on '%3'.",
2708         messageId: "SVC4169"
2709     }
2710
2711     #---------SVC4170-----------------------------
2712     # %1 - Property type (property|input|attribute)
2713     # %2 - Property name/path
2714     # %3 - Property data type
2715     TOSCA_GET_FUNCTION_PROPERTY_DATA_TYPE_NOT_FOUND: {
2716         code: 404,
2717         message: "The %1 '%2' type '%3' was not found.",
2718         messageId: "SVC4170"
2719     }
2720
2721     #---------SVC4171-----------------------------
2722     # %1 - Instance name
2723     TOSCA_GET_FUNCTION_INSTANCE_NOT_FOUND: {
2724         code: 404,
2725         message: "The instance '%1' was not found.",
2726         messageId: "SVC4171"
2727     }
2728
2729     #-----------SVC4172---------------------------
2730     #%1 - TOSCA function attribute
2731     TOSCA_FUNCTION_MISSING_ATTRIBUTE: {
2732         code: 400,
2733         message: "Missing TOSCA function '%1'.",
2734         messageId: "SVC4172"
2735     }
2736
2737     #-----------SVC4173---------------------------
2738     RELATIONSHIP_TEMPLATE_NOT_FOUND: {
2739         code: 404,
2740         message: "Relationship_templates entry not found in TOSCA CSAR.",
2741         messageId: "SVC4173"
2742     }
2743
2744     #-----------SVC4174---------------------------
2745     RELATIONSHIP_TEMPLATE_DEFINITION_NOT_FOUND: {
2746         code: 404,
2747         message: "Relationship_templates definition not found in TOSCA CSAR.",
2748         messageId: "SVC4174"
2749     }
2750
2751     #-----------SVC4175---------------------------
2752     TOSCA_FUNCTION_EXPECTED_ERROR: {
2753         code: 400,
2754         message: "Expecting a Tosca Function value.",
2755         messageId: "SVC4175"
2756     }
2757
2758     #-----------SVC4176---------------------------
2759     FILTER_CONSTRAINT_MISSING: {
2760         code: 400,
2761         message: "The filter constraint was not provided.",
2762         messageId: "SVC4176"
2763     }
2764
2765     #-----------SVC4177---------------------------
2766     #%1 - The missing field
2767     FILTER_CONSTRAINT_MISSING_FIELD: {
2768         code: 400,
2769         message: "Required field '%1' is missing in the filter constraint.",
2770         messageId: "SVC4177"
2771     }
2772
2773     #%1 - the component id
2774     SUBSTITUTION_FILTER_NOT_FOUND: {
2775         code: 404,
2776         message: 'Substitution filter not found in the component "%1"',
2777         messageId: "SVC4178"
2778     }
2779
2780     # %1 - Component name
2781     COMPONENT_DOES_NOT_HAVE_INPUTS: {
2782         code: 400,
2783         message: "Component '%1' does not have inputs.",
2784         messageId: "SVC4179"
2785     }
2786
2787     # %1 - Input name
2788     # %2 - Component name
2789     COMPONENT_INPUT_NOT_FOUND: {
2790         code: 400,
2791         message: "Input '%1' does not exist in '%2'.",
2792         messageId: "SVC4180"
2793     }
2794
2795     # %1 - Target property name
2796     # %2 - Source property name
2797     SOURCE_TARGET_SCHEMA_MISMATCH: {
2798         code: 400,
2799         message: "Target property '%1' schema '%2' does not match with source property '%3' schema '%4'.",
2800         messageId: "SVC4181"
2801     }
2802
2803     # %1 - Property name
2804     # %2 - Component name
2805     COMPONENT_PROPERTY_NOT_FOUND:
2806         code: 400
2807         message: "Property '%1' does not exist in '%2'."
2808         messageId: "SVC4183"
2809
2810     # %1 - The component type
2811     # %2 - The expected component types
2812     INVALID_COMPONENT_TYPE:
2813         code: 400
2814         message: "Invalid component type '%1'. Expected types are: %2"
2815         messageId: "SVC4185"
2816
2817     # %1 - The capability name
2818     # %2 - The component type
2819     # %3 - The component name
2820     CAPABILITY_NOT_FOUND_IN_COMPONENT:
2821         code: 400
2822         message: "Capability '%1' not found in '%2' '%3'."
2823         messageId: "SVC4186"
2824
2825     # %1 - The data type Uid
2826     DATA_TYPE_NOT_FOUND:
2827         code: 404
2828         message: "Data type '%1' was not found."
2829         messageId: "SVC4011"
2830
2831     # %1 - The data type Uid
2832     # %2 - The property name
2833     DATA_TYPE_PROPERTY_ALREADY_EXISTS:
2834         code: 409
2835         message: "Data type '%1' property '%2' already exists."
2836         messageId: "SVC4012"
2837
2838     # %1 - The operation that the error occurred
2839     UNEXPECTED_ERROR:
2840         code: 500
2841         message: "An unexpected error occurred while %1."
2842         messageId: "SVC4013"
2843
2844
2845
2846     # %1 - The capability name
2847     # %2 - The model
2848     CAPABILITY_NOT_FOUND:
2849         code: 404
2850         message: "Capability '%1' was not found for model '%2'."
2851         messageId: "SVC4014"
2852
2853     #---------SVC4015-----------------------------
2854     CANNOT_CHANGE_CONSTRAINTS: {
2855         code: 400,
2856         message: "Cannot change this properties constraints as the resource is an instance.",
2857         messageId: "SVC4015"
2858     }
2859
2860     #---------SVC4017-----------------------------
2861     # %1 - Map of component instance and properties
2862     SUBSTITUTION_NODE_TYPE_PROPERTY_IN_USE: {
2863         code: 409,
2864         message: "Cannot change substitution node type as properties of the existing type are referenced by properties %1.",
2865         messageId: "SVC4017"
2866     }
2867
2868     #---------SVC4018-----------------------------
2869     # %1 - componentType
2870     # %2 - component id
2871     CANNOT_ARCHIVE_SYSTEM_DEPLOYED_RESOURCES: {
2872         code: 409,
2873         message: "System deployed %1 cannot be archived. Component: '%2'",
2874         messageId: "SVC4018"
2875     }
2876
2877     #---------SVC4010-----------------------------
2878     # %1 - error's list
2879     YAML_IS_INVALID: {
2880         code: 402,
2881         message: "Error: Uploaded YAML file is invalid.\n%1",
2882         messageId: "SVC4010"
2883     }
2884
2885     #---------SVC4019-----------------------------
2886     # %1 - metadata property name
2887     UNCHANGEABLE_PROPERTY_ERROR: {
2888         code: 402,
2889         message: "Error: '%1' cannot change",
2890         messageId: "SVC4019"
2891     }
2892
2893     #---------SVC4020-----------------------------
2894     MISSING_SERVICE_METADATA: {
2895         code: 402,
2896         message: "Error: Missing metadata in Service",
2897         messageId: "SVC4020"
2898     }