From b944a9e724ef89ee2ea9d200d86d85bded39843d Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Tue, 7 May 2024 17:50:44 +0200 Subject: [PATCH] Fix --- src/core/views.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/views.rs b/src/core/views.rs index d8f0d1a..be9437e 100644 --- a/src/core/views.rs +++ b/src/core/views.rs @@ -94,12 +94,12 @@ async fn download(Path((chat_id, message_id)): Path<(i64, i32)>) -> impl IntoRes Ok(v) => { match v { Some(v) => v, - None => return StatusCode::BAD_REQUEST.into_response(), + None => return StatusCode::NO_CONTENT.into_response(), } }, Err(err) => { log::error!("{}", err); - return StatusCode::BAD_REQUEST.into_response() + return StatusCode::INTERNAL_SERVER_ERROR.into_response() } };