This commit is contained in:
srgooglo 2020-10-28 14:44:22 +01:00
commit 0c9c5007c8
2 changed files with 41 additions and 1 deletions

40
callback_codes.md Normal file
View 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

View File

@ -108,7 +108,7 @@ export default class SocketConnection {
})
}else{
verbosity(`[${this.ioConn.namespaceOrigin}] node is locked, cannot switch the namespace`)
}
}
}
}