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