Beispiel #1
0
func NotFoundHandler(w http.ResponseWriter, r *http.Request) {
	global := map[string]interface{}{
		"query": r.URL.Query(),
	}
	w.WriteHeader(http.StatusNotFound)
	templates.Render(w, global, "404.html")
}
Beispiel #2
0
func Http500Handler(resp *templates.HttpResponse) error {
	return templates.Render(resp.Writer, resp.Context, "50x.html")
}