Browse code

add 403 for endpoint network create

Signed-off-by: allencloud <allen.sun@daocloud.io>
(cherry picked from commit 0d21e24b9fb90ea804ba37af303de7547743ba2b)
Signed-off-by: Victor Vieux <vieux@docker.com>

allencloud authored on 2016/12/06 15:36:50
Showing 2 changed files
... ...
@@ -6133,6 +6133,10 @@ paths:
6133 6133
             example:
6134 6134
               Id: "22be93d5babb089c5aab8dbc369042fad48ff791584ca2da2100db837a1c7c30"
6135 6135
               Warning: ""
6136
+        403:
6137
+          description: "operation not supported for pre-defined networks"
6138
+          schema:
6139
+            $ref: "#/definitions/ErrorResponse"
6136 6140
         404:
6137 6141
           description: "plugin not found"
6138 6142
           schema:
... ...
@@ -3320,6 +3320,7 @@ Content-Type: application/json
3320 3320
 **Status codes**:
3321 3321
 
3322 3322
 - **201** - no error
3323
+- **403** - operation not supported for pre-defined networks
3323 3324
 - **404** - plugin not found
3324 3325
 - **500** - server error
3325 3326