diff --git a/cmd/apid/handlers/hero.go b/cmd/apid/handlers/hero.go index 2e3a42b..562c52d 100644 --- a/cmd/apid/handlers/hero.go +++ b/cmd/apid/handlers/hero.go @@ -179,7 +179,7 @@ func (h *Hero) Delete(w http.ResponseWriter, r *http.Request, params map[string] if err := hero.Delete(dbConn, params["id"]); err != nil { log.Printf("ERROR: Calling hero Delete Service function: %s", err.Error()) - w.WriteHeader(http.StatusInternalServerError) + w.WriteHeader(http.StatusNotFound) return }