Example #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")
}
Example #2
0
func Http500Handler(resp *templates.HttpResponse) error {
	return templates.Render(resp.Writer, resp.Context, "50x.html")
}