NONRTRIC - Enrichment Coordinator Service, Changed error codes
[nonrtric.git] / enrichment-coordinator-service / api / ecs-api.yaml
index 3445ede..c4463b0 100644 (file)
@@ -189,7 +189,7 @@ paths:
               schema:
                 $ref: '#/components/schemas/Void'
         400:
-          description: Bad request
+          description: Input validation failed
           content:
             application/json:
               schema:
@@ -226,7 +226,7 @@ paths:
             application/json:
               schema:
                 $ref: '#/components/schemas/ProblemDetails'
-        406:
+        409:
           description: The Information type has one or several active producers
           content:
             application/json:
@@ -429,8 +429,14 @@ paths:
             application/json:
               schema:
                 $ref: '#/components/schemas/Void'
+        400:
+          description: Input validation failed
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/ProblemDetails'
         404:
-          description: Producer not found
+          description: Producer type not found
           content:
             application/json:
               schema:
@@ -564,12 +570,24 @@ paths:
             application/json:
               schema:
                 $ref: '#/components/schemas/Void'
+        400:
+          description: Input validation failed
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/ProblemDetails'
         404:
           description: Enrichment Information type is not found
           content:
             application/json:
               schema:
                 $ref: '#/components/schemas/ProblemDetails'
+        409:
+          description: Cannot modify job type
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/ProblemDetails'
     delete:
       tags:
       - A1-EI (registration)
@@ -711,12 +729,24 @@ paths:
             application/json:
               schema:
                 $ref: '#/components/schemas/Void'
+        400:
+          description: Input validation failed
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/ProblemDetails'
         404:
           description: Information type is not found
           content:
             application/json:
               schema:
                 $ref: '#/components/schemas/ProblemDetails'
+        409:
+          description: Cannot modify job type
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/ProblemDetails'
     delete:
       tags:
       - Data consumer