aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/testdata/reqresp-nomethod.js
diff options
context:
space:
mode:
Diffstat (limited to 'rpc/testdata/reqresp-nomethod.js')
-rw-r--r--rpc/testdata/reqresp-nomethod.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/rpc/testdata/reqresp-nomethod.js b/rpc/testdata/reqresp-nomethod.js
new file mode 100644
index 000000000..58ea6f307
--- /dev/null
+++ b/rpc/testdata/reqresp-nomethod.js
@@ -0,0 +1,4 @@
+// This test calls a method that doesn't exist.
+
+--> {"jsonrpc": "2.0", "id": 2, "method": "invalid_method", "params": [2, 3]}
+<-- {"jsonrpc":"2.0","id":2,"error":{"code":-32601,"message":"the method invalid_method does not exist/is not available"}}