Use http.Error for errors.