website/src/routes/not-found.lisp

20 lines
447 B
Common Lisp
Raw Normal View History

2024-04-14 23:11:47 +09:00
(defpackage #:hp/routes/not-found
2024-04-26 01:22:50 +09:00
(:use #:cl
2024-06-15 16:42:44 +09:00
#:hsx
#:hp/response)
2024-04-14 23:11:47 +09:00
(:export #:handle-not-found))
(in-package #:hp/routes/not-found)
(defparameter *metadata*
'(:title "404 Not Found"
:description "お探しのページは見つかりませんでした。"))
2024-06-01 22:21:15 +09:00
(defcomp page ()
(hsx
2024-06-15 16:42:44 +09:00
(h1 "404 Not Found")))
2024-04-14 23:11:47 +09:00
(defun handle-not-found ()
2024-06-01 22:21:15 +09:00
(response (page)
:status :not-found
:metadata *metadata*))