diff --git a/basics/src/main.rs b/basics/src/main.rs index ff704557..300d5eb4 100644 --- a/basics/src/main.rs +++ b/basics/src/main.rs @@ -106,7 +106,7 @@ fn main() { })) .resource("/error", |r| r.f(|req| { error::InternalError::new( - io::Error::new(io::ErrorKind::Other, "test"), StatusCode::OK) + io::Error::new(io::ErrorKind::Other, "test"), StatusCode::INTERNAL_SERVER_ERROR) })) // static files .handler("/static", fs::StaticFiles::new("static"))