} else if(errorType.equals("not_authorized")) {
throw new InsufficientPermissionException(message);
} else if(errorType.equals("rate_limit_exceeded")) {
throw new RateLimitExceededException();
} else if(errorType.equals("server_error")) {
throw new InternalServerErrorException(message);
}
}