         (is-authenticated? cookies (json-response (create-ex (:username (user-from-token (:value (cookies "authToken")))) params))))
 
   (route/resources "/")
-  (route/not-found "Page not found"))
+  (route/not-found {:status 404}))
 
 (defn -main [& args]
   (.info logger "Starting to build index")

       (.error logger (str exception#))
       (stacktrace/print-stack-trace exception# 100)
       {:status 500
        :headers {"Content-Type" "application/tex"}
        :body (str exception#)})))

(defn log-and-wrap-dir-index [handler]

       (.error logger (str exception#))
       (stacktrace/print-stack-trace exception# 100)
       {:status 500
        :headers {"Content-Type" "application/text"}
        :body (str exception#)})))

(defmacro is-authenticated? [cookies action]
