get vars or return http.StatusBadRequest