summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/compat/unsupported.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/api/handlers/compat/unsupported.go')
-rw-r--r--pkg/api/handlers/compat/unsupported.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/api/handlers/compat/unsupported.go b/pkg/api/handlers/compat/unsupported.go
index 659c15328..e5ff266f9 100644
--- a/pkg/api/handlers/compat/unsupported.go
+++ b/pkg/api/handlers/compat/unsupported.go
@@ -14,6 +14,5 @@ func UnsupportedHandler(w http.ResponseWriter, r *http.Request) {
msg := fmt.Sprintf("Path %s is not supported", r.URL.Path)
log.Infof("Request Failed: %s", msg)
- utils.WriteJSON(w, http.StatusInternalServerError,
- entities.ErrorModel{Message: msg})
+ utils.WriteJSON(w, http.StatusNotFound, entities.ErrorModel{Message: msg})
}