aboutsummaryrefslogtreecommitdiffstats
path: root/src/listing.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/listing.rs')
-rw-r--r--src/listing.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/listing.rs b/src/listing.rs
index cadbb99..a37563b 100644
--- a/src/listing.rs
+++ b/src/listing.rs
@@ -1,4 +1,5 @@
use actix_web::{fs, http, Body, FromRequest, HttpRequest, HttpResponse, Query, Result};
+use actix_web::http::StatusCode;
use bytesize::ByteSize;
use futures::stream::once;
use htmlescape::encode_minimal as escape_html_entity;
@@ -265,6 +266,7 @@ pub fn directory_listing<S>(
.body(
renderer::render_error(
&err.to_string(),
+ StatusCode::INTERNAL_SERVER_ERROR,
serve_path,
sort_method,
sort_order,