|
|
@ -538,6 +538,7 @@ func (h *Handler) handleHTTPError(w http.ResponseWriter, r *http.Request, err er |
|
|
|
h.errors.Gone.ExecuteTemplate(w, "base", p) |
|
|
|
h.errors.Gone.ExecuteTemplate(w, "base", p) |
|
|
|
return |
|
|
|
return |
|
|
|
} else if err.Status == http.StatusNotFound { |
|
|
|
} else if err.Status == http.StatusNotFound { |
|
|
|
|
|
|
|
w.WriteHeader(err.Status) |
|
|
|
h.errors.NotFound.ExecuteTemplate(w, "base", pageForReq(h.app, r)) |
|
|
|
h.errors.NotFound.ExecuteTemplate(w, "base", pageForReq(h.app, r)) |
|
|
|
return |
|
|
|
return |
|
|
|
} else if err.Status == http.StatusInternalServerError { |
|
|
|
} else if err.Status == http.StatusInternalServerError { |
|
|
|