raise RestFulExeption when error