code: func EncodeResponse(w http.ResponseWriter, res interface{}, err bool) {
  	w.Header().Set("Content-Type", DefaultContentTypeV1_1)
  	if err {
  		w.WriteHeader(http.StatusInternalServerError)
  	}
  	json.NewEncoder(w).Encode(res)
  }
docs: // EncodeResponse encodes the given structure into an http response.