fn create_404() -> Response {
    let mut response = Response::new(Body::from(format!(
        "invalid path: expected '/{root}/{main}', '/{root}/{deploys}' or '/{root}/{sigs}'\n",
        root = SSE_API_ROOT_PATH,
        main = SSE_API_MAIN_PATH,
        deploys = SSE_API_DEPLOYS_PATH,
        sigs = SSE_API_SIGNATURES_PATH
    )));
    *response.status_mut() = StatusCode::NOT_FOUND;
    response
}
/// Creates a 404 response with a useful error message in the body.
Creates a 404 response with a useful error message in the body.
Creates a 404 response with a useful error message in the body .
fn create_404() -> Response {
    let mut response = Response::new(Body::from(format!(
        "invalid path: expected '/{root}/{main}', '/{root}/{deploys}' or '/{root}/{sigs}'\n",
        root = SSE_API_ROOT_PATH,
        main = SSE_API_MAIN_PATH,
        deploys = SSE_API_DEPLOYS_PATH,
        sigs = SSE_API_SIGNATURES_PATH
    )));
    *response.status_mut() = StatusCode::NOT_FOUND;
    response
}
fn create_404 ( ) -> Response { let mut response = Response :: new ( Body :: from ( format ! ( " \n " root SSE_API_ROOT_PATH main SSE_API_MAIN_PATH deploys SSE_API_DEPLOYS_PATH sigs SSE_API_SIGNATURES_PATH ) ) ) ; * response . status_mut ( ) = StatusCode :: NOT_FOUND ; response }
Creates a 404 response with a useful error message in the body.
Creates a 404 response with a useful error message in the body .