always throw RestException on rest error responses