Module error_codes

Module error_codes 

Source
Expand description

JSON-RPC 2.0 Standard Error Codes

This module contains the standard error codes defined by the JSON-RPC 2.0 specification. The error codes from -32768 to -32000 are reserved for JSON-RPC specification use.

Constants§

INTERNAL_ERROR
Internal error
INVALID_PARAMS
Invalid params
INVALID_REQUEST
Invalid Request
METHOD_NOT_FOUND
Method not found
PARSE_ERROR
Parse error
SERVER_ERROR_BASE
Server error (base)
SERVER_ERROR_END
Server error (end of reserved range)

Functions§

is_server_error
Helper function to check if a code is a reserved server error code