Browse code

Merge pull request #19045 from wenchma/network_api_update

Update docker network api doc

moxiegirl authored on 2016/01/06 03:55:56
Showing 2 changed files
... ...
@@ -2797,8 +2797,9 @@ Content-Type: application/json
2797 2797
 
2798 2798
 Status Codes:
2799 2799
 
2800
-- **201** - no error
2800
+- **200** - no error
2801 2801
 - **404** - network or container is not found
2802
+- **500** - Internal Server Error
2802 2803
 
2803 2804
 JSON Parameters:
2804 2805
 
... ...
@@ -2827,8 +2828,9 @@ Content-Type: application/json
2827 2827
 
2828 2828
 Status Codes:
2829 2829
 
2830
-- **201** - no error
2830
+- **200** - no error
2831 2831
 - **404** - network or container not found
2832
+- **500** - Internal Server Error
2832 2833
 
2833 2834
 JSON Parameters:
2834 2835
 
... ...
@@ -2846,11 +2848,11 @@ Instruct the driver to remove the network (`id`).
2846 2846
 
2847 2847
 **Example response**:
2848 2848
 
2849
-    HTTP/1.1 204 No Content
2849
+    HTTP/1.1 200 OK
2850 2850
 
2851 2851
 Status Codes
2852 2852
 
2853
--   **204** - no error
2853
+-   **200** - no error
2854 2854
 -   **404** - no such network
2855 2855
 -   **500** - server error
2856 2856
 
... ...
@@ -3043,8 +3043,9 @@ Content-Type: application/json
3043 3043
 
3044 3044
 Status Codes:
3045 3045
 
3046
-- **201** - no error
3046
+- **200** - no error
3047 3047
 - **404** - network or container is not found
3048
+- **500** - Internal Server Error
3048 3049
 
3049 3050
 JSON Parameters:
3050 3051
 
... ...
@@ -3073,8 +3074,9 @@ Content-Type: application/json
3073 3073
 
3074 3074
 Status Codes:
3075 3075
 
3076
-- **201** - no error
3076
+- **200** - no error
3077 3077
 - **404** - network or container not found
3078
+- **500** - Internal Server Error
3078 3079
 
3079 3080
 JSON Parameters:
3080 3081
 
... ...
@@ -3092,11 +3094,11 @@ Instruct the driver to remove the network (`id`).
3092 3092
 
3093 3093
 **Example response**:
3094 3094
 
3095
-    HTTP/1.1 204 No Content
3095
+    HTTP/1.1 200 OK
3096 3096
 
3097 3097
 Status Codes
3098 3098
 
3099
--   **204** - no error
3099
+-   **200** - no error
3100 3100
 -   **404** - no such network
3101 3101
 -   **500** - server error
3102 3102