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