1: <?php
2:
3: declare(strict_types=1);
4:
5: /**
6: * This file is part of the Nexus MCP SDK package.
7: *
8: * (c) 2026 John Paul E. Balandan, CPA <paulbalandan@gmail.com>
9: *
10: * For the full copyright and license information, please view
11: * the LICENSE file that was distributed with this source code.
12: */
13:
14: namespace Nexus\Mcp\Core\Schema\Enum;
15:
16: /**
17: * JSON-RPC error codes this SDK allocates for itself, from the `-32000` to `-32019` range MCP
18: * partitions for implementation-defined use. The specification never defines codes there, and a
19: * receiver must not read cross-implementation meaning into them.
20: *
21: * The counterpart holding spec-defined codes is `ProtocolErrorCode`.
22: *
23: * @see https://www.jsonrpc.org/specification#error_object
24: * @see https://modelcontextprotocol.io/specification/2026-07-28/basic/index#error-codes
25: */
26: enum SdkErrorCode: int
27: {
28: /**
29: * The server is already dispatching as many messages as it accepts at once.
30: * The request was not processed and may be retried.
31: */
32: case Overloaded = -32000;
33: }
34: