node-jsonrpc-error
v1.0.0
Published
Standard JSON RPC 2.0 error
Downloads
3
Readme
Standard JSON RPC 2.0 Error
Provides standard JSON RPC 2.0 error.
Install
npm install node-jsonrpc-error
Usage
Import the JSON RPC 2.0 error module:
var JsonRpcError = require('node-jsonrpc-error');
var error = new JsonRpcError(-32600, 'Invalid Request');
console.log(error);