Respond with 504 to timeouts

This commit is contained in:
durch
2025-06-06 10:49:03 +02:00
parent e336e02df2
commit 71c24d8c81
+1 -1
View File
@@ -245,7 +245,7 @@ async fn send_receive_mixnet(_state: AppState) -> Result<String, StatusCode> {
Ok(_) => {}
Err(e) => {
error!("Failed to send/receive message: {e}");
return Err(StatusCode::INTERNAL_SERVER_ERROR);
return Err(StatusCode::GATEWAY_TIMEOUT);
}
}
}