Simplify http errors by using http.Error()