diff --git a/examples/modal/modal.go b/examples/modal/modal.go index dd337542d..92bfc8b00 100644 --- a/examples/modal/modal.go +++ b/examples/modal/modal.go @@ -185,7 +185,7 @@ func handleModal(w http.ResponseWriter, r *http.Request) { _, err := api.UpdateView(updateModal, "", i.View.Hash, i.View.ID) if err != nil { fmt.Printf("Error updating view: %s", err) - w.WriteHeader(http.StatusUnauthorized) + w.WriteHeader(http.StatusInternalServerError) return } }