Skip to content

Variable: JSONRPCErrorCode ​

const JSONRPCErrorCode: object

The error codes of the JSON-RPC 2.0 responses sent by jsonRPCServiceEntrypoint.

Type Declaration ​

INTERNAL_ERROR ​

readonly INTERNAL_ERROR: -32603

Reserved by the specification for the internal errors; the adapter does not send it.

INVALID_PARAMS ​

readonly INVALID_PARAMS: -32602

The params are given by position without the positionalParams option, or fail the action's input validation (InvalidValueException).

INVALID_REQUEST ​

readonly INVALID_REQUEST: -32600

The message is not a JSON-RPC 2.0 request (or is an empty batch, or the HTTP request is not a POST to the path).

METHOD_NOT_FOUND ​

readonly METHOD_NOT_FOUND: -32601

No service action matches the request (ControllerActionNotFoundException).

PARSE_ERROR ​

readonly PARSE_ERROR: -32700

The message is not valid JSON.

SERVER_ERROR ​

readonly SERVER_ERROR: -32000

Any other error thrown by an action (in the server error range, -32000 to -32099), with the whole error object as the error's data.

STOPPING ​

readonly STOPPING: -32001

The entrypoint is stopping and refuses the new requests (EntrypointStoppedException).

Released under the MIT License.