mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
Merge branch 'master' of https://github.com/srgooglo/comty
This commit is contained in:
commit
69384845f5
40
callback_codes.md
Normal file
40
callback_codes.md
Normal file
@ -0,0 +1,40 @@
|
||||
# Callback Codes
|
||||
|
||||
## 000 - 100 > Runtime
|
||||
|
||||
| code | type |
|
||||
|--|--|
|
||||
| | |
|
||||
|
||||
|
||||
## 100 - 200 > Operations results
|
||||
|
||||
| code | type | description
|
||||
|--|--|--|
|
||||
| 100 | successful operation | |
|
||||
| 110 | failed operation | unhandled |
|
||||
| 115 | invalid operation | |
|
||||
> API/WS Requests callbacks codes
|
||||
|
||||
| | | |
|
||||
|--|--|--|
|
||||
| 130 | needs auth | |
|
||||
| 131 | no user send | |
|
||||
| 132 | no id_user send | |
|
||||
| 133 | no password send | |
|
||||
| 134 | no token send | |
|
||||
| 135 | no server_key send | |
|
||||
| 136 | no payload send | |
|
||||
> API/WS Invalid requests
|
||||
|
||||
| | | |
|
||||
|--|--|--|
|
||||
| 140 | invalid auth |
|
||||
| 141 | invalid/notfound user |
|
||||
| 142 | invalid/notfound id_user |
|
||||
| 143 | invalid password |
|
||||
| 144 | invalid/notfound token |
|
||||
| 145 | invalid server_key | fails when the sended server_key is not valid |
|
||||
| 146 | invalid payload | bad typeof / missing parameter / bad parameter |
|
||||
|
||||
## 200 - 300 > Permissions
|
@ -108,7 +108,7 @@ export default class SocketConnection {
|
||||
})
|
||||
}else{
|
||||
verbosity(`[${this.ioConn.namespaceOrigin}] node is locked, cannot switch the namespace`)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user