package routing import ( "net/http" ) func NotFoundJson(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusNotFound) _, _ = w.Write([]byte(`{"GeneralError":"Not Found"}`)) w.Header().Add("Content-Type", "application/json") }