mcp: use correct ResourceNotFound code (#35)
This commit is contained in:
parent
1478ba7e0e
commit
09181c2c2e
1 changed files with 2 additions and 8 deletions
|
|
@ -34,7 +34,7 @@ var (
|
|||
// ErrUnknown should be used for all non coded errors.
|
||||
ErrUnknown = NewError(-32001, "JSON RPC unknown error")
|
||||
// ErrServerClosing is returned for calls that arrive while the server is closing.
|
||||
ErrServerClosing = NewError(-32002, "JSON RPC server is closing")
|
||||
ErrServerClosing = NewError(-32004, "JSON RPC server is closing")
|
||||
// ErrClientClosing is a dummy error returned for calls initiated while the client is closing.
|
||||
ErrClientClosing = NewError(-32003, "JSON RPC client is closing")
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue