private void convertAndThrowException(@Nonnull final Exception e, final int statusCode)
            throws CopyException {

        switch (statusCode) {
            case SC_OK:
                break;
            case SC_UNAUTHORIZED:
                throw new UnconfirmedUserException(String.format("http status code: %d: Unauthorized Apple Music User", statusCode), e);
            case SC_PRECONDITION_FAILED:
                throw new PermissionDeniedException(String.format("http status code: %d: Apple Music Library Service Permission Denied", statusCode), e);
            case SC_NOT_FOUND:
                throw new AppleHttpCopyException(String.format("http status code: %d: Apple Music Library Not Found", statusCode), e, SC_NOT_FOUND);
            case SC_INSUFFICIENT_STORAGE:
                throw new DestinationMemoryFullException(String.format("http status code: %d: Apple Music Library Storage Full", statusCode), e);
            case SC_SERVICE_UNAVAILABLE:
                throw new AppleHttpCopyException(String.format("http status code: %d: Apple Music Library Service Unavailable", statusCode), e, SC_SERVICE_UNAVAILABLE);
            case SC_BAD_REQUEST:
                throw new AppleHttpCopyException(String.format("http status code: %d: Bad Apple Music Library Service Request", statusCode), e, SC_BAD_REQUEST);
            case SC_INTERNAL_SERVER_ERROR:
            default:
                throw new AppleHttpCopyException(String.format("http status code: %d: Unknown Apple Music Library Service Error", statusCode), e, SC_INTERNAL_SERVER_ERROR);
        }
    }
@return the total number of playlist tracks acknowledged by the Apple Music Library Service in this page
extensions/data-transfer/portability-data-transfer-apple/src/main/java/org/datatransferproject/datatransfer/apple/music/AppleMusicInterface.java