pub fn hardcoded_error_body(code: StatusCode, message: Option<&[u8]>) -> Bytes
Expand description

Get a hardcoded error message.

It can be useful when you don’t have access to the file cache or if a error html file isn’t provided. Is used by the preferred function default_error found in Kvarn.