diff --git a/server/public/handle_images.go b/server/public/handle_images.go index f4985dea5..7e1948b39 100644 --- a/server/public/handle_images.go +++ b/server/public/handle_images.go @@ -46,11 +46,11 @@ func (pub *Router) handleImages(w http.ResponseWriter, r *http.Request) { return case errors.Is(err, model.ErrNotFound): log.Warn(r, "Couldn't find coverArt", "id", id, err) - http.Error(w, "Artwork not found", http.StatusNotFound) + w.WriteHeader(http.StatusNoContent) return case errors.Is(err, artwork.ErrUnavailable): log.Debug(r, "Item does not have artwork", "id", id, err) - http.Error(w, "Artwork not found", http.StatusNotFound) + w.WriteHeader(http.StatusNoContent) return case err != nil: log.Error(r, "Error retrieving coverArt", "id", id, err)