write_text_error

Function write_text_error 

Source
pub async fn write_text_error(
    session: &mut Session,
    status: u16,
    message: &str,
) -> Result<(), Box<Error>>
Expand description

Write a plain text error response

Shorthand for write_error with text/plain; charset=utf-8 content type.