From 7410eed9913ac4c419ee85b38c94c8e149ceeea4 Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Mon, 7 Oct 2024 14:26:49 -0500 Subject: [PATCH] docs(rpc): add new error type --- zenith-openrpc.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/zenith-openrpc.json b/zenith-openrpc.json index 30b7021..53cb005 100644 --- a/zenith-openrpc.json +++ b/zenith-openrpc.json @@ -132,6 +132,7 @@ ], "errors": [ { "$ref": "#/components/errors/ZebraNotAvailable" }, + { "$ref": "#/components/errors/ZenithBusy" }, { "$ref": "#/components/errors/DuplicateName" } ] }, @@ -228,6 +229,7 @@ "errors": [ { "$ref": "#/components/errors/ZebraNotAvailable" }, { "$ref": "#/components/errors/DuplicateName" }, + { "$ref": "#/components/errors/ZenithBusy" }, { "$ref": "#/components/errors/InvalidWallet" } ] }, @@ -444,6 +446,7 @@ ], "errors": [ { "$ref": "#/components/errors/InvalidAccount" }, + { "$ref": "#/components/errors/ZenithBusy" }, { "$ref": "#/components/errors/DuplicateName" } ] }, @@ -646,6 +649,7 @@ ], "errors": [ { "$ref": "#/components/errors/ZebraNotAvailable" }, + { "$ref": "#/components/errors/ZenithBusy" }, { "$ref": "#/components/errors/InvalidAccount" } ] }, @@ -886,6 +890,10 @@ "InvalidRecipient": { "code": -32011, "message": "The provided recipient address is not valid." + }, + "ZenithBusy": { + "code": -32012, + "message": "The Zenith server is syncing, please try again later." } } }