error

Function error 

Source
pub fn error(status: StatusCode, msg: impl Into<Body>) -> Response<Body>
Expand description

Error response with custom status and message.