API for noir.statuses
- ()
Usage:
(ns your-namespace
(:require noir.statuses))
Overview
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.
Public Variables and Functions
get-page
function
Usage: (get-page code)
Gets the content to display for the given status code
set-page!
function
Usage: (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.