Skip to main content

error

Function error 

Source
pub fn error(w: &mut dyn ResponseWriter, message: &str, code: u16)
Expand description

Write a plain-text error response. Port of Go’s http.Error.