Function kvarn::error::default

source ·
pub async fn default(
    code: StatusCode,
    host: Option<&Host>,
    message: Option<&[u8]>
) -> Response<Bytes>
Expand description

Default HTTP error used in Kvarn.

Gets the default error based on code from the file system through a cache.