Simplify http mux code and use slice for reponse