Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error handling #2

Closed
skyizwhite opened this issue Feb 14, 2024 · 1 comment
Closed

Error handling #2

skyizwhite opened this issue Feb 14, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@skyizwhite
Copy link
Owner

skyizwhite commented Feb 14, 2024

  • Need to add a handler that returns 404 if the route to be accessed does not exist.
@skyizwhite skyizwhite changed the title Error page Error handling Feb 14, 2024
@skyizwhite skyizwhite added the enhancement New feature or request label Feb 14, 2024
@skyizwhite
Copy link
Owner Author

Just implement the necessary process as follows:

(defmethod jingle:not-found ((app jingle:app))
  (jingle:with-html-response
    (jingle:set-response-status 404)
    (piccolo:element-string (not-found-page))))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant