From 74b17374c24b89ec365965781eee130f1cee5fd7 Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 3 Oct 2026 22:10:17 +0000 Subject: [PATCH] DELETE: say 404 on enoent; closes #1656 --- copyparty/up2k.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/up2k.py b/copyparty/up2k.py index c8e658550..39da8b8ed 100644 --- a/copyparty/up2k.py +++ b/copyparty/up2k.py @@ -4409,7 +4409,7 @@ class Up2k(object): is_dir = stat.S_ISDIR(st.st_mode) except: # NOTE: "file not found" *sftpd - raise Pebkac(400, "file not found on disk (already deleted?)") + raise Pebkac(404, "file not found on disk (already deleted?)") if "bcasechk" in vn.flags and not vn.casechk(rem, False): raise Pebkac(400, "file does not exist case-sensitively")