Use the rest.Error method instead of the http.Error method