create_error_response

Function create_error_response 

Source
pub fn create_error_response(message: impl Into<String>) -> Response
Expand description

Creates a response indicating an application-level error.

This is for errors that should be displayed to the end-user, not for protocol errors.