Skip to content

Commit 851cf4f

Browse files
committed
error: add CodeServerOverloaded constant
1 parent 6f6e82e commit 851cf4f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

error.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ const (
3535
// CodeContentModified is the state change that invalidates the result of a request in execution.
3636
CodeContentModified Code = -32801
3737

38+
//CodeServerOverloaded is returned when a message was refused due to a
39+
//server being temporarily unable to accept any new messages.
40+
CodeServerOverloaded = -32000
41+
3842
codeServerErrorStart Code = -32099 //nolint:deadcode,varcheck
3943
codeServerErrorEnd Code = -32000 //nolint:deadcode,varcheck
4044
)

0 commit comments

Comments
 (0)