github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/pkg/api/handlers/compat/unsupported.go (about) 1 package compat 2 3 import ( 4 "fmt" 5 "net/http" 6 7 "github.com/containers/podman/v2/pkg/domain/entities" 8 9 "github.com/containers/podman/v2/pkg/api/handlers/utils" 10 log "github.com/sirupsen/logrus" 11 ) 12 13 func UnsupportedHandler(w http.ResponseWriter, r *http.Request) { 14 msg := fmt.Sprintf("Path %s is not supported", r.URL.Path) 15 log.Infof("Request Failed: %s", msg) 16 17 utils.WriteJSON(w, http.StatusNotFound, entities.ErrorModel{Message: msg}) 18 }