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