1.0.0 • Published 6 years ago
node-jsonrpc-error v1.0.0
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);
License
1.0.0
6 years ago