diff --git a/api/handlers.go b/api/handlers.go index 187548efc6..65e9dfb6c4 100644 --- a/api/handlers.go +++ b/api/handlers.go @@ -587,6 +587,7 @@ func postNetworksCreate(c *context, w http.ResponseWriter, r *http.Request) { } w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusCreated) json.NewEncoder(w).Encode(response) } @@ -606,6 +607,7 @@ func postVolumesCreate(c *context, w http.ResponseWriter, r *http.Request) { } w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusCreated) json.NewEncoder(w).Encode(volume) }