package main | |
import ( | |
"fmt" | |
"net/http" | |
) | |
func handle404(w http.ResponseWriter, r *http.Request) { | |
logRequest(w, r, "404") | |
w.WriteHeader(http.StatusNotFound) | |
fmt.Fprintf(w, "404!\n") | |
} | |
func handle500(w http.ResponseWriter, r *http.Request) { | |
logRequest(w, r, "500") | |
w.WriteHeader(http.StatusNotFound) | |
fmt.Fprintf(w, "500 :(\n") | |
} |