Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (10 sloc) 266 Bytes
package main
import (
"net/http"
)
// NotFoundHandler serves the "404" page
type NotFoundHandler struct{}
func (n NotFoundHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
// Serve as HTTP 200 to undo caching.
http.Error(w, "File not found", 200)
}