Commits

Peter Bex committed f960512

Improve error codes given when no egg name or release name is given, or when it couldn't be found: it's a client error, not a server error

  • Participants
  • Parent commits 0d3fe35

Comments (0)

Files changed (1)

File pseudo-meta-egg-info.scm

                                 (newline port)))
                             releases)
                   (close-output-port port))))
-            (send-status 500 (sprintf "Egg \"~A\" doesn't exist or has no tags dir" egg-name))))
-      (send-status 500 "No egg name given")))
+            (send-status 404 (sprintf "Egg \"~A\" doesn't exist or has no tags dir" egg-name))))
+      (send-status 400 "No egg name given")))
 
 (define (files-list continue)
   (or (and-let* ((params (uri-query (request-uri (current-request))))
                                 (newline port)))
                             files)
                   (close-output-port port))))
-            (send-status 500
+            (send-status 404
                          (sprintf "Release \"~A\" for egg \"~A\" doesn't exist"
                                   egg-release egg-name))))
-      (send-status 500 "No egg name or release given")))
+      (send-status 400 "No egg name or release given")))
 )