Lobby error messages
Reference common Lobby service error codes and messages to troubleshoot integration issues.
Read time 4 minutesLast updated 15 hours ago
The Lobby service returns errors in the "problem details" format (RFC 7807) including some additional fields that are consistent with most other UGS services. Example:
{ "title": "Bad Request", "status": 400, "code": 16000, "detail": "request failed validation", "details": [ { "errorType": "validation", "message": "count in body should be less than or equal to 100" } { "errorType": "validation", "message": "skip in body should be greater than or equal to 0" } ], "type": "http://unity3d/lobby/errors/validation-error"}
Error Status
Field | Description |
|---|---|
| Code | A Unity services error code that uniquely identifies the type of error. |
| Detail | A human-readable explanation specific to this occurrence of the problem. |
| Details | A list of additional details about the specific error. Refer to Error Details. |
| Status | The HTTP status code of the response. |
| Title | A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization. |
| Type | A URI that identifies the problem type and may provide documentation for the problem. These URLs are currently non-functional |
Error Details
Field | Description |
|---|---|
| ErrorType | Represents the type of error detail. |
| Message | Provides more information about the error. |
Error codes
ThecodeLobbyNotFound16001NotFoundNotFoundCode | Name | Description |
|---|---|---|
| 0 | Unknown | Unknown is returned when the server is unable to determine what the error is. |
| 1 | TransportError | TransportError is returned when there are DNS, TLS or other transport errors. |
| 2 | Timeout | Timeout is returned when no response was received in the allotted time causing the request to time out. |
| 3 | ServiceUnavailable | ServiceUnavailable is typically returned when the service is unavailable because the service is overloaded or down due to service maintenance. |
| 4 | ApiMissing | ApiMissing is returned when the API does not exist. |
| 5 | RequestRejected | RequestRejected is returned when the request was rejected before any request reaches the API. |
| 50 | TooManyRequests | TooManyRequests is returned when the request was rate limited because the client is making requests too frequently. Refer to Rate limits. |
| 51 | InvalidToken | InvalidToken is returned when the authentication token is invalid. |
| 52 | TokenExpired | TokenExpired is returned when the authentication token has expired. |
| 53 | Forbidden | Forbidden is returned when the user does not have permission to perform the requested operation. |
| 54 | NotFound | NotFound is returned when the requested resource was not found. |
| 55 | InvalidRequest | InvalidRequest is returned when the request was understood but the API refused to process it because of a request validation error. |
| 16000 | ValidationError | ValidationError is returned when there is a problem validating the user's request. The error details contain additional information about the problem. |
| 16001 | LobbyNotFound | LobbyNotFound is returned when the requested lobby was not found. |
| 16002 | PlayerNotFound | PlayerNotFound is returned when the requested player was not found in the lobby. |
| 16003 | LobbyConflict | LobbyConflict is returned when there was a conflict while trying to update the lobby. This could indicate that a player attempting to join a lobby was already a member, or there was an unresolvable issue while attempting to make some other update to the lobby. |
| 16004 | LobbyFull | LobbyFull is returned when the lobby that a user is trying to join already contains the maximum number of players. |
| 16005 | LobbyLocked | LobbyLocked is returned when the membership to the lobby has been locked and no new players can join. |
| 16006 | NoOpenLobbies | NoOpenLobbies is returned when a QuickJoin request was unable to find a lobby with available space for the user to join. |
| 16007 | LobbyAlreadyExists | LobbyAlreadyExists indicates that the Lobby cannot be created because it already exists. |
| 16008 | LobbyNotModified | LobbyNotModified indicates that the lobby resource has not been modified since the last observed version. |
| 16009 | IncorrectPassword | IncorrectPassword player attempted to join with a password that did not match the lobby's password. |
| 16010 | InvalidJoinCode | InvalidJoinCode indicates that a Join Code is not valid for some reason such as an invalid character. |