Handle NotAuthorizedException in RestClient (doesn't contain entity).