}
}
private <T> CreateSendException handleOAuthErrorResponse(
Status responseStatus, ApiErrorResponse<T> apiResponse) {
return new CreateSendHttpException(
String.format("The CreateSend OAuth receiver responded with the following error - %s: %s",
apiResponse.error, apiResponse.error_description),
responseStatus.getStatusCode(), 0, apiResponse.error_description);
}