pocesar / node-jsonrpc2

JSON-RPC 2.0 server and client library, with HTTP (with Websocket support) and TCP endpoints
Other
105 stars 41 forks source link

How can i pass error code into response? #46

Open topilski opened 6 years ago

topilski commented 6 years ago

Hi, according http://www.jsonrpc.org/specification , error json field should have code: {"code": -32601, "message": "Method not found"} , how can get this code from response? Now you only return message.