|
4 | 4 |
|
5 | 5 | Events over the Geometry Dash servers usually send an error code denoting that the server either had an error, or you sent an invalid request.
|
6 | 6 |
|
7 |
| -#### Server Status Codes |
| 7 | +### Server Status Codes |
8 | 8 |
|
9 | 9 | | Code | Name | Description |
|
10 | 10 | |------|------------------------------------------------------------------|-------------------------------------------------------------------------------------|
|
11 | 11 | | -1 | Invalid Request | A parameter in your [HTTP request](/endpoints/request.md) to the server was invalid.|
|
12 | 12 | | -2 | [Common](/topics/status_codes?id=endpoint-specific-status-codes) | This status code is commonly used in multiple endpoints either for `taken` things, or theres none of something. |
|
13 | 13 |
|
14 |
| -#### Endpoint-specific Status Codes |
| 14 | +### Endpoint-specific Status Codes |
15 | 15 |
|
16 |
| -These are Status Codes that are used in more than one place. |
| 16 | +#### registerGJAccount |
17 | 17 |
|
18 |
| -| Code | Name | Endpoint | Description | |
19 |
| -|------|----------------------|--------------------------------|------------------------------------------| |
20 |
| -| -2 | Taken Username | registerGJAccount.php | The username provided has been taken | |
21 |
| -| -4 | Request is too large | Account saving (69.164.210.48) | Your request to the server was too large | |
22 |
| -| -5 | Bad login info | Account saving (69.164.210.48) | Invalid login info was provided | |
23 |
| -| -6 | Something went wrong | Account saving (69.164.210.48) | Something went wrong on the servers' end | |
24 |
| -| -10 | Permanent comment ban | uploadGJComment.php/uploadGJAccComment.php | you have been permanently banned from commenting by robtop himself | |
25 |
| -| temp_{time in seconds}_{reason for ban} | temporary comment ban | uploadGJComment.php/uploadGJAccComment.php | you have been temporarily banned by an elder mod | |
| 18 | +| Code | Name | Description | |
| 19 | +|:-----|:-----|:------------| |
| 20 | +| `-2` | Taken UserName | If the username you are trying to register with is taken | |
| 21 | +| `-3` | Email is in use | If an account with that already email exists | |
| 22 | +| `-4` | Username is invalid | If the username is invalid | |
| 23 | +| `-5` | Password is invalid | If the password is invalid | |
| 24 | +| `-6` | Email is invalid | If the email is invalid | |
| 25 | +| `-7` | Passwords do not match | If the passwords don't match | |
| 26 | +| `-8` | Too short. Minimum 6 characters | If the password is less than 6 characters long | |
| 27 | +| `-9` | Too short. Minimum 3 characters | If the name is less than 3 characters long | |
| 28 | +| `-99` | Emails do not match | if emails do not match | |
| 29 | + |
| 30 | +#### loginGJAccount |
| 31 | + |
| 32 | +| Code | Name | Description | |
| 33 | +|:-----|:-----|:------------| |
| 34 | +| `-8` | Too short. Minimum 6 characters | If the password is less than 6 characters long | |
| 35 | +| `-9` | Too short. Minimum 3 characters | If the name is less than 3 characters long | |
| 36 | +| `-10`| Already linked to a different account | If you are already logged into a different account (refresh login) | |
| 37 | +| `-11`| Login Failed | Your login credentials are incorrect | |
| 38 | +| `-12`| Account Disabled | Your account has been disabled | |
| 39 | +| `-13`| Account already linked to a steam account | An unused error code which supposedly only allowed a single account per steam account | |
| 40 | + |
| 41 | +#### syncGJAccount/backupGJAccount |
| 42 | + |
| 43 | +| Code | Name | Description | |
| 44 | +|:-----|:-----|:------------| |
| 45 | +| `-2` | Login Failed | Your login credentials were wrong and you need to log back in | |
| 46 | +| `-4` | Request is too large | Your request to the server was too large | |
| 47 | +| `-5` | Bad login info | Invalid login info was provided | |
| 48 | +| `-6` | Something went wrong | Something went wrong on the servers' end | |
| 49 | + |
| 50 | + |
| 51 | +#### suggestGJStars/rateGJDemon |
| 52 | + |
| 53 | +| Code | Name | Description | |
| 54 | +|:-----|:-----|:------------| |
| 55 | +| `-2` | Not a Moderator | If you try to send a level despite not being a moderator | |
| 56 | + |
| 57 | +#### uploadGJComment/uploadGJAccComment |
| 58 | + |
| 59 | +| Code | Name | Description | |
| 60 | +|:-----|:-----|:------------| |
| 61 | +| `-10` | Permanent comment ban | If Robtop has deemed you worthy of a permanent comment ban | |
| 62 | +| `temp_{time}_{reason}` | Temporary Comment Ban | If you have recieved a temporary ban from Robtop or an [Elder Moderator](/topics/moderators.md) |
| 63 | + |
| 64 | +| Key | description | |
| 65 | +|:----|:------------| |
| 66 | +| `{time}` | The duration of your ban left in seconds | |
| 67 | +| `{reason}` | The reason behind your ban | |
0 commit comments