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