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