Error code 524, 'Not authorized to join this experience,' (sometimes shown with 'you do not have permission to join this server') means the server exists but you are not on its list. The usual cases: a VIP or private server whose owner has not invited you or has link-joining disabled, an experience restricted by account settings or age, or a teleport into a private place from another experience. Nothing is broken; permission is the entire issue.
Some experiences teleport players into reserved or private places (lobbies, matches, story chapters). A 524 during a teleport usually means the destination place's permissions do not match the sending experience's, a bug belonging to the developers. Reporting it to them, with the time and what you clicked, is genuinely useful, and there is nothing to fix on your device.
Why can my friend join but I cannot? Private server access is per-account. Being friends with a player inside is not the same as being invited; the server owner controls the list or the link, and only they can extend it to you.
Does 524 mean I was banned from the experience? No. Bans and kicks present as code 267 with a kick message. 524 is an authorization check failing before you ever enter, most often a private server you are not on the list for.