This commit is contained in:
2024-05-07 17:50:44 +02:00
parent 16a1691212
commit b944a9e724

View File

@@ -94,12 +94,12 @@ async fn download(Path((chat_id, message_id)): Path<(i64, i32)>) -> impl IntoRes
Ok(v) => { Ok(v) => {
match v { match v {
Some(v) => v, Some(v) => v,
None => return StatusCode::BAD_REQUEST.into_response(), None => return StatusCode::NO_CONTENT.into_response(),
} }
}, },
Err(err) => { Err(err) => {
log::error!("{}", err); log::error!("{}", err);
return StatusCode::BAD_REQUEST.into_response() return StatusCode::INTERNAL_SERVER_ERROR.into_response()
} }
}; };