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