mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +08:00
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>
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user