Skip to main content

error_message

Function error_message 

Source
pub fn error_message(status: StatusCode, error: &dyn Display) -> String
Expand description

What an error response says: the error itself, unless it’s internal (a 500), which is logged and not shown.