Enum FriendsExceptionReason
Enumerates the known error causes when communicating with the Friends Service. N.B. Error code range for this service: 16000-16999
Namespace: Unity.Services.Friends.Exceptions
Syntax
public enum FriendsExceptionReason
Fields
| Name | Description | Value |
|---|---|---|
| BadGateway | Error code representing HTTP Status Code of 502 for the Friends 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 Friends Service. The Friends service cannot process the request because it is invalid. |
|
| Conflict | Error code representing HTTP Status Code of 409 for the Friends Service. There’s a conflict with the server's current state. |
|
| EntityNotFound | Error code representing HTTP Status Code of 404 for the Friends Service. The server has not found the specified resource. |
|
| Forbidden | Error code representing HTTP Status Code of 403 for the Friends Service. The server understood the request, and refuses to fulfill it. |
|
| FriendRequestAlreadySent | A friend request from this player is already pending in the receiver's inbox. |
|
| FriendRequestDoesNotExist | A friend request from this player does not exist. |
|
| FriendshipAlreadyExists | The friendship already exists. |
|
| FriendshipDoesNotExist | The friendship does not exist between current player and target player. |
|
| FriendsServiceDisabled | The friends service must be enabled on the Unity Dashboard to use the friends SDK. |
|
| FriendUnknownError | A friends unknown error. |
|
| GatewayTimeout | Error code representing HTTP Status Code of 504 for the Friends Service. The upstream server did not respond in time. |
|
| Gone | Error code representing HTTP Status Code of 410 for the Friends Service. The requested resource is no longer available. |
|
| InternalServerError | Error code representing HTTP Status Code of 500 for the Friends Service. The server encountered an unexpected condition which prevented it from fulfilling the request. |
|
| InvalidEnvironmentIdentifier | Invalid environment identifier. |
|
| InvalidEventSource | The event source must be 1-255 characters long. |
|
| InvalidLimitParameter | The Limit parameter must be a positive integer. |
|
| InvalidOffsetParameter | The Offset parameter must be a positive integer. |
|
| InvalidPlayerIdentifier | Invalid player identifier. |
|
| InvalidProjectIdentifier | Invalid project identifier. |
|
| MethodNotAllowed | Error code representing HTTP Status Code of 405 for the Friends Service. The method specified is not allowed for the specified resource. |
|
| Misdirected | Error code representing HTTP Status Code of 421 for the Friends Service. Unreachable endpoint. |
|
| NetworkError | NetworkError is returned when the UnityWebRequest failed with this flag set. See the exception stack trace when this reason is provided for context. |
|
| NotImplemented | Error code representing HTTP Status Code of 501 for the Friends Service. The server cannot fulfill the request. |
|
| OpCantTargetThemselves | The player cannot target themselves for this operation. |
|
| PlayerIsAlreadyBlocked | The player is already blocked. |
|
| RangeNotSatisfiable | Error code representing HTTP Status Code of 416 for the Friends Service. The requested ranges cannot be served. |
|
| RateLimited | Error code representing HTTP Status Code of 429 for the Friends Service. Rate limit exceeded. See https://docs.unity.com/Friends/Content/rate-limits.htm for more details. |
|
| RequestEntityTooLarge | Error code representing HTTP Status Code of 413 for the Friends Service. The request entity is too large. |
|
| RequestTimeOut | Error code representing HTTP Status Code of 408 for the Friends Service. The request took too long. |
|
| RequestUriTooLong | Error code representing HTTP Status Code of 414 for the Friends Service. The request URI is too long. |
|
| ServiceUnavailable | Error code representing HTTP Status Code of 503 for the Friends Service. The server is temporarily unable to handle the request. |
|
| Unauthorized | Error code representing HTTP Status Code of 401 for the Friends Service. The request requires authentication. |
|
| UnavailableForLegalReasons | Error code representing HTTP Status Code of 451 for the Friends Service. The requested resource is not available. |
|
| Unknown | Unknown is returned when a unrecognized error code is returned by the service. Check the inner exception to get more information. |
|
| UnprocessableTransaction | Error code representing HTTP Status Code of 422 for the Friends Service. The request cannot be processed. |
|
| UnsupportedMediaType | Error code representing HTTP Status Code of 415 for the Friends Service. The request format is invalid. |