diff options
author | Jhon Honce <jhonce@redhat.com> | 2022-02-10 13:45:46 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2022-02-10 13:47:24 -0700 |
commit | 3f28d697ee7642530ab2f0eeb31953eca850b80b (patch) | |
tree | 76e1917da49d7f8f74fc0aa3d067fd1126a5686e /pkg | |
parent | 6d2b54a731cf5ac9a7e760709748ee96a636d65e (diff) | |
download | podman-3f28d697ee7642530ab2f0eeb31953eca850b80b.tar.gz podman-3f28d697ee7642530ab2f0eeb31953eca850b80b.tar.bz2 podman-3f28d697ee7642530ab2f0eeb31953eca850b80b.zip |
Add 409 response to swagger godoc
When attempting to create a network with a name that already exists,
a 409 status code will be returned
[NO NEW TESTS NEEDED]
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/api/server/register_networks.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/api/server/register_networks.go b/pkg/api/server/register_networks.go index baa1fe6fb..4466c938f 100644 --- a/pkg/api/server/register_networks.go +++ b/pkg/api/server/register_networks.go @@ -320,6 +320,8 @@ func (s *APIServer) registerNetworkHandlers(r *mux.Router) error { // $ref: "#/responses/NetworkCreateReport" // 400: // $ref: "#/responses/BadParamError" + // 409: + // $ref: "#/responses/ConflictError" // 500: // $ref: "#/responses/InternalError" r.HandleFunc(VersionedPath("/libpod/networks/create"), s.APIHandler(libpod.CreateNetwork)).Methods(http.MethodPost) |