Function kvarn::error::default_response

source ·
pub async fn default_response(
    code: StatusCode,
    host: &Host,
    message: Option<&str>
) -> FatResponse
Expand description

Get a error FatResponse.

Can be very useful to return from extensions.