|
| 1 | +// Copyright (c) 2023 AccelByte Inc. All Rights Reserved. |
| 2 | +// This is licensed software from AccelByte Inc, for limitations |
| 3 | +// and restrictions contact your company contract manager. |
| 4 | + |
| 5 | +#pragma once |
| 6 | + |
| 7 | +#include "CoreMinimal.h" |
| 8 | + |
| 9 | +namespace AccelByte |
| 10 | +{ |
| 11 | + /// <summary> |
| 12 | + /// https://www.rfc-editor.org/rfc/rfc6455#section-7.4.1 |
| 13 | + /// </summary> |
| 14 | + UENUM(BlueprintType) |
| 15 | + enum class EWebsocketErrorTypes : int32 |
| 16 | + { |
| 17 | + Default = 0, |
| 18 | + NormalClosure = 1000, |
| 19 | + EndpointUnavailable = 1001, |
| 20 | + ProtocolError = 1002, |
| 21 | + InvalidMessageType = 1003, |
| 22 | + LocalFutureUsageCode = 1004, |
| 23 | + LocalNoStatusCodePresent = 1005, |
| 24 | + LocalClosedAbnormally = 1006, |
| 25 | + InvalidPayloadData = 1007, |
| 26 | + PolicyViolation = 1008, |
| 27 | + MessageTooBig = 1009, |
| 28 | + MandatoryExtension = 1010, |
| 29 | + InternalServerError = 1011, |
| 30 | + LocalHandshakeFailure = 1015, |
| 31 | + |
| 32 | + //RESERVED 0-999 |
| 33 | + //Status codes in the range 0 - 999 are not used. |
| 34 | + |
| 35 | + //RESERVED 1000-2999 |
| 36 | + //Status codes in the range 1000 - 2999 are reserved for definition by |
| 37 | + //this protocol, its future revisions, and extensions specified in a |
| 38 | + //permanentand readily available public specification. |
| 39 | + |
| 40 | + //3000-3999 |
| 41 | + DisconnectSenderBrokenPipe = 3101, |
| 42 | + DisconnectSenderUnhandledError = 3102, |
| 43 | + DisconnectSenderUnableToPing = 3103, |
| 44 | + DisconnectReaderIOTimeout = 3120, |
| 45 | + DisconnectReaderUnexpectedEOF = 3121, |
| 46 | + DisconnectReaderUnhandledCloseError = 3122, |
| 47 | + |
| 48 | + |
| 49 | + //RESERVED 4000-4999 |
| 50 | + DisconnectServerShutdown = 4000, |
| 51 | + DisconnectTokenRevokedCode = 4020, |
| 52 | + DisconnectDueToIAMLoggedOut = 4021, |
| 53 | + DisconnectDueToIAMDisconnect = 4022, |
| 54 | + DisconnectDueToFastReconnect = 4040, |
| 55 | + DisconnectDueToMultipleSessions = 4041, |
| 56 | + DisconnectFromExternalReconnect = 4042, |
| 57 | + DisconnectDueCCULimiter = 4060, |
| 58 | + DisconnectUnknownError = 4099, |
| 59 | + OutsideBoundaryOfDisconnection = 4400, |
| 60 | + |
| 61 | + //WILL BE DEPRECATED |
| 62 | + //Translated & split into 3101-3103 |
| 63 | + DisconnectSenderError = 4004, |
| 64 | + //WILL BE DEPRECATED |
| 65 | + //Translated & split into 3120-3121 |
| 66 | + DisconnectReaderClosed = 4005, |
| 67 | + //WILL BE DEPRECATED |
| 68 | + //Translated into the 3122 |
| 69 | + DisconnectReaderClosedAbnormal = 4006, |
| 70 | + //WILL BE DEPRECATED |
| 71 | + DisconnectReaderError = 4007 |
| 72 | + }; |
| 73 | +} |
0 commit comments