Enum LobbyExceptionReason
Enumerates the known error causes when communicating with the Lobby Service. N.B. Error code range for this service: 16000-16999
Namespace: Unity.Services.Lobbies
Assembly: Unity.Services.Multiplayer.dll
Syntax
public enum LobbyExceptionReason
Fields
Name | Description |
---|---|
AlreadySubscribedToLobby | Error code representing a LobbyEvent error for the Lobby Service. You are already subscribed to this lobby and have attempted to subscribe to it again. |
AlreadyUnsubscribedFromLobby | Error code representing a LobbyEvent error for the Lobby Service. You are already unsubscribed from this lobby and have attempted to unsubscribe from it again. |
BadGateway | Error code representing HTTP Status Code of 502 for the Lobby Service. The server, while acting as a gateway or proxy, received an invalid response from the upstream server. |
BadRequest | Error code representing HTTP Status Code of 400 for the Lobby Service. The request made was invalid and will not be processed by the service. |
Conflict | Error code representing HTTP Status Code of 409 for the Lobby Service. The request could not be completed due to a conflict with the current state on the server. |
EntityNotFound | Error code representing HTTP Status Code of 404 for the Lobby Service. The server has not found the specified resource. |
ExpectationFailed | Error code representing HTTP Status Code of 417 for the Lobby Service. An expectation in the request cannot be met by the server. |
FailedDependency | Error code representing HTTP Status Code of 424 for the Lobby Service. The method could not be performed on the resource because a dependency for the action failed. |
Forbidden | Error code representing HTTP Status Code of 403 for the Lobby Service. The server understood the request, and refuses to fulfill it. |
GatewayTimeout | Error code representing HTTP Status Code of 504 for the Lobby Service. The server, while acting as a gateway or proxy, did not get a response in time from the upstream server that it needed in order to complete the request. |
Gone | Error code representing HTTP Status Code of 410 for the Lobby Service. The requested resource is no longer available and there is no known forwarding address. |
HttpVersionNotSupported | Error code representing HTTP Status Code of 505 for the Lobby Service. The server does not support the HTTP protocol that was used in the request. |
IncorrectPassword | Player attempted to join a lobby with a password that did not match the lobby's password. |
InsufficientStorage | Error code representing HTTP Status Code of 507 for the Lobby Service. The server has insufficient storage space to complete the request. |
InternalServerError | Error code representing HTTP Status Code of 500 for the Lobby Service. The server encountered an unexpected condition which prevented it from fulfilling the request. |
InvalidArgument | Error code representing HTTP Status Code of 400 for the Lobby Service. The request could not be understood by the server due to malformed syntax. |
InvalidJoinCode | Player attempted to join a lobby with an invalid join code (e.g. it contained invalid characters). |
LengthRequired | Error code representing HTTP Status Code of 411 for the Lobby Service. The server refuses to accept the request without a defined content-length. |
LobbyAlreadyExists | The Lobby cannot be created because it already exists. |
LobbyConflict | There was a resource conflict when attempting to access Lobby data. Potentially caused by asynchronous access to resources. |
LobbyEventServiceConnectionError | Error code representing a LobbyEvent error for the Lobby Service. Something went wrong when trying to connect to the Lobby service. Ensure a valid Lobby ID was sent. |
LobbyFull | Target Lobby already has the maximum number of players. No additional members can be added. |
LobbyLocked | Target Lobby is locked. No additional players can join. |
LobbyNotFound | Lobby with the given ID was not found or has already ended. |
Locked | Error code representing HTTP Status Code of 423 for the Lobby Service. The source or destination resource is locked. |
LoopDetected | Error code representing HTTP Status Code of 508 for the Lobby Service. The server terminated the request because it encountered an infinite loop. |
MethodNotAllowed | Error code representing HTTP Status Code of 405 for the Lobby Service. The method specified is not allowed for the specified resource. |
Misdirected | Error code representing HTTP Status Code of 421 for the Lobby Service. The request was directed to a server that is not able to produce a response. |
NetworkAuthenticationRequired | Error code representing HTTP Status Code of 511 for the Lobby Service. The request requires authentication for network access. |
NetworkError | NetworkError is returned when the UnityWebRequest failed with this flag set. See the exception stack trace when this reason is provided for context. |
NoOpenLobbies | No accessible lobbies are currently available for quick-join. |
NotAcceptable | Error code representing HTTP Status Code of 406 for the Lobby Service. The server cannot provide a response that matches the acceptable values for the request. |
NotExtended | Error code representing HTTP Status Code of 510 for the Lobby Service. The policy for accessing the resource has not been met in the request. |
NotImplemented | Error code representing HTTP Status Code of 501 for the Lobby Service. The server does not support the functionality required to fulfil the request. |
PaymentRequired | Error code representing HTTP Status Code of 402 for the Lobby Service. This error code is reserved for future use. |
PlayerNotFound | Player data with the given ID was not found in the specified Lobby. |
PreconditionFailed | Error code representing HTTP Status Code of 412 for the Lobby Service. A precondition given in the request was not met when tested on the server. |
PreconditionRequired | Error code representing HTTP Status Code of 428 for the Lobby Service. The server requires the request to be conditional. |
ProxyAuthenticationRequired | Error code representing HTTP Status Code of 407 for the Lobby Service. The request requires authentication with the proxy. |
RangeNotSatisfiable | Error code representing HTTP Status Code of 416 for the Lobby Service. The requested ranges cannot be served. |
RateLimited | Error code representing HTTP Status Code of 429 for the Lobby Service. Too many requests have been sent in a given amount of time. Please see: https://docs.unity.com/lobby/Content/rate-limits.htm for more details. |
RequestEntityTooLarge | Error code representing HTTP Status Code of 413 for the Lobby Service. The request entity is larger than the server is willing or able to process. |
RequestHeaderFieldsTooLarge | Error code representing HTTP Status Code of 431 for the Lobby Service. The request has been refused because its HTTP headers are too long. |
RequestTimeOut | Error code representing HTTP Status Code of 408 for the Lobby Service. The request was not made within the time the server was prepared to wait. |
RequestUriTooLong | Error code representing HTTP Status Code of 414 for the Lobby Service. The request URI is longer than the server is willing to interpret. |
ServiceUnavailable | Error code representing HTTP Status Code of 503 for the Lobby Service. The server is currently unable to handle the request due to a temporary reason. |
SubscriptionToLobbyLostWhileBusy | Error code representing a LobbyEvent error for the Lobby Service. The connection was lost or dropped while attempting to do something with the connection such as subscribe or unsubscribe. |
Teapot | Error code representing HTTP Status Code of 418 for the Lobby Service. The server refuses to brew coffee because it is, permanently, a teapot. Defined by the Hyper Text Coffee Pot Control Protocol defined in April Fools' jokes in 1998 and 2014. |
TooEarly | Error code representing HTTP Status Code of 425 for the Lobby Service. The server is unwilling to risk processing a request that may be replayed. |
Unauthorized | Error code representing HTTP Status Code of 401 for the Lobby Service. The request requires authentication. |
UnavailableForLegalReasons | Error code representing HTTP Status Code of 451 for the Lobby Service. The requested resource is not available for legal reasons. |
Unknown | Unknown is returned when a unrecognized error code is returned by the service. Check the inner exception to get more information. |
UnknownErrorCode | The returned value could not be parsed, such as an error code was not included in the response. |
UnprocessableTransaction | Error code representing HTTP Status Code of 422 for the Lobby Service. The request is understood, but the server was unable to process its instructions. |
UnsupportedMediaType | Error code representing HTTP Status Code of 415 for the Lobby Service. The request is in a format not supported by the requested resource for the requested method. |
UpgradeRequired | Error code representing HTTP Status Code of 426 for the Lobby Service. The server refuses to perform the request using the current protocol. |
ValidationError | Validation check failed on Lobby e.g. in the case of a failed player id match. |
VariantAlsoNegotiates | Error code representing HTTP Status Code of 506 for the Lobby Service. The server has an internal configuration error: the chosen variant resource is configured to engage in transparent content negotiation itself, and is therefore not a proper end point in the negotiation process. |