pub fn error_response(
uri: &Uri,
method: &Method,
status_code: &StatusCode,
page404: &Path,
page50x: &Path,
) -> Result<Response<Body>>
Expand description
It returns a HTTP error response which also handles available 404
or 50x
HTML content.