change ErrSessionIsTaken to EssSessionIsBusy

This commit is contained in:
2025-08-01 20:07:15 +03:00
parent 6508f03d08
commit 041fda8522
2 changed files with 4 additions and 4 deletions

View File

@@ -26,8 +26,8 @@ func (gs *GatewayServer) Handle(w http.ResponseWriter, r *http.Request) {
if !gs.sm.Add(sessionUUID) {
rpc.WriteError(w, &rpc.RPCResponse{
Error: map[string]any{
"code": rpc.ErrSessionIsTaken,
"message": rpc.ErrSessionIsTakenS,
"code": rpc.ErrSessionIsBusy,
"message": rpc.ErrSessionIsBusyS,
},
})
return

View File

@@ -25,6 +25,6 @@ const (
ErrMethodIsMissing = -32020
ErrMethodIsMissingS = "Method is missing"
ErrSessionIsTaken = -32030
ErrSessionIsTakenS = "The session is already taken"
ErrSessionIsBusy = -32030
ErrSessionIsBusyS = "The session is busy"
)