diff --git a/caddyhttp/markdown/markdown.go b/caddyhttp/markdown/markdown.go index ace2d411..6294479e 100644 --- a/caddyhttp/markdown/markdown.go +++ b/caddyhttp/markdown/markdown.go @@ -142,7 +142,7 @@ func (md Markdown) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error case err == nil: // nop case os.IsPermission(err): return http.StatusForbidden, err - case os.IsExist(err): + case os.IsNotExist(err): return http.StatusNotFound, nil default: // did we run out of FD? return http.StatusInternalServerError, err