diff --git a/editor/post.go b/editor/post.go index 936848aba..748a24f94 100644 --- a/editor/post.go +++ b/editor/post.go @@ -52,7 +52,7 @@ func POST(w http.ResponseWriter, r *http.Request, c *config.Config, filename str file = f default: - return http.StatusNotFound, nil + return http.StatusBadRequest, nil } // Write the file