Skip to content

Commit fb3fb44

Browse files
authored
Merge pull request #51 from Wyliemaster/status-Codes
Status codes
2 parents b90c35a + 683b3b2 commit fb3fb44

File tree

3 files changed

+55
-12
lines changed

3 files changed

+55
-12
lines changed

docs/resources/server/comment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ A list of all known keys can be found in the table below
4444
| 2 | comment | **String** | The comment left by the user, encoded in [base64](/topics/encryption/base64.md)
4545
| 3 | author* | **Integer** | The player ID of the author. **This is different than the account ID**
4646
| 4 | likes | **Integer** | The amount of likes the comment has
47-
| 5 | dislikes | **Integer** | The amount of dislikes the comment has -> unused
47+
| 5 | dislikes | **Integer** | The amount of dislikes the comment has -> unused
4848
| 6 | messageID | **Integer** | The message ID. Account comments have different IDs than level comments
4949
| 7 | spam | **Bool** | If a comment has been flagged as spam
5050
| 9 | age | **String** | How long ago the comment was posted (e.g. "2 months")

docs/resources/server/song.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ A list of all known keys can be found in the table below
3838
| 8 | isVerified | **Bool** | if the song artist is scouted on newgrounds
3939
| 9 | songPriority | **Integer** | priority over the song list
4040
| 10 | link | **String** | Link to the song's mp3
41+

docs/topics/status_codes.md

Lines changed: 53 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,64 @@
44

55
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.
66

7-
#### Server Status Codes
7+
### Server Status Codes
88

99
| Code | Name | Description |
1010
|------|------------------------------------------------------------------|-------------------------------------------------------------------------------------|
1111
| -1 | Invalid Request | A parameter in your [HTTP request](/endpoints/request.md) to the server was invalid.|
1212
| -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. |
1313

14-
#### Endpoint-specific Status Codes
14+
### Endpoint-specific Status Codes
1515

16-
These are Status Codes that are used in more than one place.
16+
#### registerGJAccount
1717

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

Comments
 (0)