blob: dd7269ffcd33e9fa7276bc83e53df5050b54778b [file] [log] [blame]
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +02001package main
2
3import (
4 "fmt"
5 "net/http"
6)
7
8func handle404(w http.ResponseWriter, r *http.Request) {
9 logRequest(w, r, "404")
10 w.WriteHeader(http.StatusNotFound)
11 fmt.Fprintf(w, "404!\n")
12}
13
14func handle500(w http.ResponseWriter, r *http.Request) {
15 logRequest(w, r, "500")
16 w.WriteHeader(http.StatusNotFound)
17 fmt.Fprintf(w, "500 :(\n")
18}