Use HTTP Not Found rather than Internal server error for logs not found

This commit is contained in:
Mm2PL 2022-04-22 14:54:31 +02:00
parent 444fdaa947
commit d43e48053f
No known key found for this signature in database
GPG key ID: 94AC9B80EFA15ED9

View file

@ -213,7 +213,7 @@ func (s *Server) routeLogs(w http.ResponseWriter, r *http.Request) bool {
if err != nil {
log.Error(err)
http.Error(w, "could not load logs", http.StatusInternalServerError)
http.Error(w, "could not load logs", http.StatusNotFound)
return true
}