throw new ResourceNotFoundException(FACEBOOK, message);
} else if (statusCode == HttpStatus.INTERNAL_SERVER_ERROR) {
if (message.equals("User must be an owner of the friendlist")) { // watch for pattern in similar message in other resources
throw new ResourceOwnershipException(message);
} else if (message.equals("The member must be a friend of the current user.")) {
throw new NotAFriendException(message);
} else {
throw new InternalServerErrorException(FACEBOOK, message);
}
}
}