func net/http.Error

31 uses

	net/http (current package)
		fs.go#L146: 		Error(w, "Error reading directory", StatusInternalServerError)
		fs.go#L243: 				Error(w, "seeker can't seek", StatusInternalServerError)
		fs.go#L254: 		Error(w, err.Error(), StatusInternalServerError)
		fs.go#L267: 			Error(w, err.Error(), StatusRequestedRangeNotSatisfiable)
		fs.go#L292: 				Error(w, err.Error(), StatusRequestedRangeNotSatisfiable)
		fs.go#L600: 		Error(w, msg, code)
		fs.go#L608: 		Error(w, msg, code)
		fs.go#L721: 		Error(w, "invalid URL path", StatusBadRequest)
		h2_bundle.go#L6523: 		Error(w, err.Error(), StatusBadRequest)
		server.go#L2078: func Error(w ResponseWriter, error string, code int) {
		server.go#L2086: func NotFound(w ResponseWriter, r *Request) { Error(w, "404 page not found", StatusNotFound) }

	github.com/prometheus/client_golang/prometheus/promhttp
		http.go#L120: 				http.Error(rsp, fmt.Sprintf(
		http.go#L344: 	http.Error(

	golang.org/x/net/http2
		server.go#L2968: 		http.Error(w, err.Error(), http.StatusBadRequest)

	golang.org/x/net/trace
		trace.go#L154: 		http.Error(w, "not allowed", http.StatusUnauthorized)
		trace.go#L169: 		http.Error(w, "not allowed", http.StatusUnauthorized)

	golang.org/x/pkgsite/cmd/prober
		main.go#L288: 		http.Error(w, fmt.Sprintf("template execution failed: %v", err), http.StatusInternalServerError)

	golang.org/x/pkgsite/internal/frontend
		playground.go#L22: 	http.Error(w, http.StatusText(status), status)
		server.go#L368: 		http.Error(w, serr.responseText, serr.status)

	golang.org/x/pkgsite/internal/middleware
		accept_requests.go#L20: 				http.Error(w, http.StatusText(http.StatusRequestURITooLong), http.StatusRequestURITooLong)
		accept_requests.go#L29: 			http.Error(w, http.StatusText(http.StatusMethodNotAllowed), http.StatusMethodNotAllowed)
		iapheader.go#L27: 					http.Error(w, err.Error(), http.StatusUnauthorized)
		quota.go#L97: 				http.Error(w, http.StatusText(tmr), tmr)
		stats.go#L117: 		http.Error(w, err.Error(), http.StatusInternalServerError)

	golang.org/x/pkgsite/internal/proxy
		server.go#L46: 			http.Error(w, "not found: temporarily unavailable", http.StatusGone)
		server.go#L148: 				http.Error(w, "not found", http.StatusGone)

	golang.org/x/pkgsite/internal/worker
		server.go#L281: 		http.Error(w, http.StatusText(code), code)
		server.go#L464: 			http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
		server.go#L635: 		http.Error(w, fmt.Sprintf("DB ping failed: %v", err), http.StatusInternalServerError)
		server.go#L763: 	http.Error(w, serr.err.Error(), serr.status)

	google.golang.org/grpc
		server.go#L901: 		http.Error(w, err.Error(), http.StatusInternalServerError)