                                                          :size-limit 800))}
 
           :else
-          {:status 401
+          {:status 200
            :headers {"Content-Type" "image/png"
                      "Cache-Control" "no-cache; private"}
            :body (convert/svg->png (render/render-layers private-layers

               :body (render/render-layers layers :invert-colors? (-> req :params :printer-friendly (= "false")))}))

          (auth/logged-in? req)
          {:status 403
           :headers {"Content-Type" "image/svg+xml"
                     "Cache-Control" "no-cache; private"}
           :body (render/render-layers private-layers :invert-colors? (-> req :params :printer-friendly (= "false")))}

          :else
          {:status 401
           :headers {"Content-Type" "image/svg+xml"
                     "Cache-Control" "no-cache; private"}
           :body (render/render-layers private-layers :invert-colors? (-> req :params :printer-friendly (= "false")))})))

                                     (render/svg-props layers))})

          (auth/logged-in? req)
          {:status 200
           :headers {"Content-Type" "application/pdf"
                     "Cache-Control" "no-cache; private"}
           :body (convert/svg->pdf (render/render-layers private-layers :invert-colors? (-> req :params :printer-friendly (= "false")))
                                   (render/svg-props private-layers))}

          :else
          {:status 200
           :headers {"Content-Type" "application/pdf"
                     "Cache-Control" "no-cache; private"}
           :body (convert/svg->pdf (render/render-layers private-layers :invert-colors? (-> req :params :printer-friendly (= "false")))
