From 911386d5c8816397eb7b8d59a62a3f19e321e9ff Mon Sep 17 00:00:00 2001 From: dowwie Date: Tue, 17 Apr 2018 13:55:49 -0400 Subject: [PATCH] updated basics example to return 500 statuscode for /error request --- basics/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basics/src/main.rs b/basics/src/main.rs index ff70455..300d5eb 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"))