Set 404 status to not-found response

This commit is contained in:
Akira Tempaku 2025-04-01 01:15:02 +09:00
parent bc87e5de01
commit 3c83e74a84
Signed by: paku
GPG key ID: 5B4E8402BCC50607
2 changed files with 3 additions and 4 deletions
tests/routes

View file

@ -1,11 +1,7 @@
(defpackage #:ningle-fbr-test/routes/not-found
(:use #:cl)
(:import-from #:lack/response)
(:import-from #:ningle)
(:export #:handle-not-found))
(in-package #:ningle-fbr-test/routes/not-found)
(defun handle-not-found ()
(setf (lack/response:response-status ningle:*response*)
404)
"Not Found")