looking for how to return an exception to rest client