make the examples use rest.Error instead of http.Error