Improve get resource api error

This commit is contained in:
Daniel 2023-10-25 14:29:39 +02:00
parent 7434534523
commit d760bfb4ef

View file

@ -139,7 +139,7 @@ func registerAPIEndpoints() error {
// If we could not convert to acceptable format, return an error.
if !converted {
http.Error(w, err.Error(), http.StatusNotAcceptable)
http.Error(w, "conversion to requested format not supported", http.StatusNotAcceptable)
return
}
}