func (p *politeiawww) handleNotFound(w http.ResponseWriter, r *http.Request) {
	// Log incoming connection
	log.Debugf("Invalid route: %v %v %v %v", remoteAddr(r), r.Method, r.URL,
		r.Proto)

	// Trace incoming request
	log.Tracef("%v", newLogClosure(func() string {
		trace, err := httputil.DumpRequest(r, true)
		if err != nil {
			trace = []byte(fmt.Sprintf("logging: "+
				"DumpRequest %v", err))
		}
		return string(trace)
	}))

	util.RespondWithJSON(w, http.StatusNotFound, v1.ErrorReply{})
}
// handleNotFound is a generic handler for an invalid route.
handleNotFound is a generic handler for an invalid route.
// handleNotFound is a generic handler for an invalid route .
func (p *politeiawww) handleNotFound(w http.ResponseWriter, r *http.Request) {
	log.Debugf("Invalid route: %v %v %v %v", remoteAddr(r), r.Method, r.URL,
		r.Proto)
	log.Tracef("%v", newLogClosure(func() string {
		trace, err := httputil.DumpRequest(r, true)
		if err != nil {
			trace = []byte(fmt.Sprintf("logging: "+
				"DumpRequest %v", err))
		}
		return string(trace)
	}))
	util.RespondWithJSON(w, http.StatusNotFound, v1.ErrorReply{})
}
func ( p * politeiawww ) handleNotFound ( w http . ResponseWriter , r * http . Request ) { log . Debugf ( " " , remoteAddr ( r ) , r . Method , r . URL , r . Proto ) log . Tracef ( " " , newLogClosure ( func ( ) string { trace , err := httputil . DumpRequest ( r , true ) if err != nil { trace = [ ] byte ( fmt . Sprintf ( " " + " " , err ) ) } return string ( trace ) } ) ) util . RespondWithJSON ( w , http . StatusNotFound , v1 . ErrorReply { } ) }
handleNotFound is a generic handler for an invalid route.
handleNotFound is a generic handler for an invalid route .
// Log incoming connection // Trace incoming request