Use HTTP Not Found rather than Internal server error for logs not found
This commit is contained in:
parent
444fdaa947
commit
d43e48053f
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ func (s *Server) routeLogs(w http.ResponseWriter, r *http.Request) bool {
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error(err)
|
log.Error(err)
|
||||||
http.Error(w, "could not load logs", http.StatusInternalServerError)
|
http.Error(w, "could not load logs", http.StatusNotFound)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue