From 6d39ec8e05e96d01cb5759a2f230a53a003b5fb4 Mon Sep 17 00:00:00 2001 From: Ben Sarmiento Date: Wed, 31 Jan 2024 22:42:18 +0100 Subject: [PATCH] Change to locked --- internal/universal/downloader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/universal/downloader.go b/internal/universal/downloader.go index ff0548a..4382408 100644 --- a/internal/universal/downloader.go +++ b/internal/universal/downloader.go @@ -49,7 +49,7 @@ func (dl *Downloader) DownloadFile(directory, torrentName, fileName string, resp // log.Debugf("Opening file %s from torrent %s (%s)", fileName, torMgr.GetKey(torrent), file.Link) if file.IsBroken { if cfg.EnableRepair() { - http.Error(resp, "File is temporarily unavailable", http.StatusInternalServerError) + http.Error(resp, "File is temporarily unavailable", http.StatusLocked) } else { http.Error(resp, "File is not available", http.StatusNotFound) }