4ac12ef70a
These are the formatting & linting configuration changes from the `3.8.0` branch and the changes that they make to the overall project. The majority of these changes are from running two commands: `npm run lint:fix` `npm run style:fix` This has already been run on the `3.8.0` branch and this PR should make `master` play nicer when it comes to merges going forward. There are now four VSCode plugins recommended for server development. They've been added to the workspace file and a user should get a UI notification when the workspace is opened if they're not installed. The four plugins are: https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig https://marketplace.visualstudio.com/items?itemName=dprint.dprint https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint https://marketplace.visualstudio.com/items?itemName=biomejs.biome Once installed they should just work within the workspace. Also, be sure to `npm i` to get the new dprint application. Co-authored-by: Refringe <brownelltyler@gmail.com> Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/168
87 lines
2.6 KiB
TypeScript
87 lines
2.6 KiB
TypeScript
export enum BackendErrorCodes
|
|
{
|
|
NONE = 0,
|
|
UNKNOWN_ERROR = 200,
|
|
NOT_AUTHORIZED = 201,
|
|
NEED_AUTHORIZATION_CODE = 209,
|
|
WRONG_AUTHORIZATION_CODE = 211,
|
|
NEED_CAPTCHA = 214,
|
|
NO_NEED_CAPTCHA = 215,
|
|
CAPTCHA_INVALID_ANSWER = 216,
|
|
CAPTCHA_FAILED = 218,
|
|
CAPTCHA_BRUTE_FORCED = 219,
|
|
NO_ROOM_IN_STASH = 223,
|
|
NICKNAME_NOT_UNIQUE = 225,
|
|
NICKNAME_NOT_VALID = 226,
|
|
UNSUPPORTED_CLIENT_VERSION = 232,
|
|
REPORT_NOT_ALLOWED = 238,
|
|
NICKNAME_IS_ABUSIVE = 241,
|
|
NICKNAME_CHANGE_TIMEOUT = 242,
|
|
NOT_ENOUGH_SPACE_TO_UNPACK = 257,
|
|
NOT_MODIFIED = 304,
|
|
HTTP_BAD_REQUEST = 400,
|
|
HTTP_NOT_AUTHORIZED = 401,
|
|
HTTP_FORBIDDEN = 403,
|
|
HTTP_NOT_FOUND = 404,
|
|
HTTP_METHOD_NOT_ALLOWED = 405,
|
|
UNKNOWN_TRADING_ERROR = 500,
|
|
HTTPNOTIMPLEMENTED = 501,
|
|
HTTPBADGATEWAY = 502,
|
|
HTTPSERVICEUNAVAILABLE = 503,
|
|
HTTPGATEWAYTIMEOUT = 504,
|
|
TRADEROUTOFMONEY = 505,
|
|
HTTPVARIANTALSONEGOTIATES = 506,
|
|
PRICECHANGED = 509,
|
|
TRADERDISABLED = 512,
|
|
ITEMHASBEENSOLD = 513,
|
|
NOTENOUGHSPACEFORMONEY = 518,
|
|
HTTPINVALIDSSLCERTIFICATE = 526,
|
|
UNKNOWNRAGFAIRERROR = 550,
|
|
UNKNOWNRAGFAIRERROR2 = 551,
|
|
UNKNOWNMATCHMAKERERROR = 600,
|
|
SESSIONPARAMETERSERROR = 601,
|
|
SESSIONLOST = 602,
|
|
SERVERNOTREGISTERED = 604,
|
|
UNKNOWNQUESTERROR = 700,
|
|
QUESTBADPARAM = 702,
|
|
QUESTNOTFOUND = 703,
|
|
QUESTISUNAVAILABLE = 704,
|
|
NOFREESPACEFORREWARDS = 705,
|
|
WRONGQUESTSTATUS = 706,
|
|
CANTCOMPLETEQUEST = 707,
|
|
UNKNOWNMAILERROR = 900,
|
|
TOOMANYFRIENDREQUESTS = 925,
|
|
UNKNOWNSCRIPTEXECUTIONERROR = 1000,
|
|
UNKNOWNREPAIRINGERROR = 1200,
|
|
UNKNOWNINSURANCEERROR = 1300,
|
|
UNKNOWNCURRENCYEXCHANGEERROR = 1400,
|
|
OFFERNOTFOUND = 1503,
|
|
NOTENOUGHSPACE = 1505,
|
|
OFFEROUTOFSTOCK = 1506,
|
|
OFFERSOLD = 1507,
|
|
RAGFAIRUNAVAILABLE = 1511,
|
|
BANNEDERRORCODE = 1513,
|
|
INSUFFICIENTNUMBERINSTOCK = 1516,
|
|
TOOMANYITEMSTOSELL = 1517,
|
|
EXAMINATIONFAILED = 22001,
|
|
ITEMALREADYEXAMINED = 22002,
|
|
UNKNOWNNGINXERROR = 9000,
|
|
PARSERESPONSEERROR = 9001,
|
|
UNKNOWNMATCHMAKERERROR2 = 503000, // They have two of these...why :/
|
|
UNKNOWNGROUPERROR = 502000,
|
|
GROUPREQUESTNOTFOUND = 502002,
|
|
GROUPFULL = 502004,
|
|
PLAYERALREADYINGROUP = 502005,
|
|
PLAYERNOTINGROUP = 502006,
|
|
PLAYERNOTLEADER = 502007,
|
|
CANTCHANGEREADYSTATE = 502010,
|
|
PLAYERFORBIDDENGROUPINVITES = 502011,
|
|
LEADERALREADYREADY = 502012,
|
|
GROUPSENDINVITEERROR = 502013,
|
|
PLAYERISOFFLINE = 502014,
|
|
PLAYERISNOTSEARCHINGFORGROUP = 502018,
|
|
PLAYERALREADYLOOKINGFORGAME = 503001,
|
|
PLAYERINRAID = 503002,
|
|
LIMITFORPRESETSREACHED = 504001,
|
|
}
|