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 partitions for
18: * implementation-defined use.
19: *
20: * @see https://www.jsonrpc.org/specification#error_object
21: * @see https://modelcontextprotocol.io/specification/2026-07-28/basic/index#error-codes
22: */
23: enum SdkErrorCode: int
24: {
25: /**
26: * The server is already dispatching as many messages as it accepts at once, so the request went
27: * unprocessed and may be retried.
28: */
29: case Overloaded = -32_000;
30: }
31: