func net/http.Error

11 uses

	net/http (current package)
		csrf.go#L213: 			Error(w, err.Error(), StatusForbidden)
		fs.go#L157: 		Error(w, "Error reading directory", StatusInternalServerError)
		fs.go#L211: 	Error(w, text, code)
		h2_bundle.go#L7285: 		Error(w, err.Error(), StatusBadRequest)
		server.go#L2301: func Error(w ResponseWriter, error string, code int) {
		server.go#L2322: func NotFound(w ResponseWriter, r *Request) { Error(w, "404 page not found", StatusNotFound) }
		server.go#L2707: 				Error(w, StatusText(StatusMethodNotAllowed), StatusMethodNotAllowed)

	github.com/coder/websocket
		accept.go#L111: 		http.Error(w, err.Error(), errCode)
		accept.go#L123: 			http.Error(w, err.Error(), http.StatusForbidden)
		accept.go#L131: 		http.Error(w, http.StatusText(http.StatusNotImplemented), http.StatusNotImplemented)
		accept.go#L162: 		http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)