guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: Ludovic Courtès
Date: Thu, 24 Aug 2023 11:21:34 -0400 (EDT)

branch: master
commit 5e3e49c351f94a63dbea004333a1ac1fe4f43982
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Thu Aug 24 14:52:54 2023 +0200

    http: "/download" returns 404 rather than 500 for "not found".
    
    * src/cuirass/http.scm (url-handler): "/download" returns 404 when the
    build product is not found.
---
 src/cuirass/http.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cuirass/http.scm b/src/cuirass/http.scm
index 4a20b7f..26020de 100644
--- a/src/cuirass/http.scm
+++ b/src/cuirass/http.scm
@@ -1184,7 +1184,7 @@ passed, only display JOBS targeting this SYSTEM."
        (if path
            (respond-file path)
            (respond-json-with-error
-            500
+            404
             "Could not find the request build product."))))
 
     (('GET "machine" name)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]