If no pages are defined that match a request, a status page is used based on the the HTTP status code of the response. This contains the function necessary to get or set these status pages.
If no pages are defined that match a request, a status page is used based on the the HTTP status code of the response. This contains the function necessary to get or set these status pages.
(get-page code)
Gets the content to display for the given status code
Gets the content to display for the given status code
(set-page! code content)
Sets the content to be displayed if there is a response with the given status code. This is used for custom 404 pages, for example.
Sets the content to be displayed if there is a response with the given status code. This is used for custom 404 pages, for example.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close