Liking cljdoc? Tell your friends :D

noir.statuses

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.
raw docstring

get-pageclj

(get-page code)

Gets the content to display for the given status code

Gets the content to display for the given status code
sourceraw docstring

set-page!clj

(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.
sourceraw docstring

status-pagesclj

source

status-responseclj

(status-response orig)
source

wrap-status-pagesclj

(wrap-status-pages handler)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close