mirror of
https://github.com/Xahau/xahaud.git
synced 2026-06-04 17:26:39 +00:00
APIv2(gateway_balances, channel_authorize): update errors (#4618)
gateway_balances * When `account` does not exist in the ledger, return `actNotFound` * (Previously, a normal response was returned) * Fix #4290 * When required field(s) are missing, return `invalidParams` * (Previously, `invalidHotWallet` was incorrectly returned) * Fix #4548 channel_authorize * When the specified `key_type` is invalid, return `badKeyType` * (Previously, `invalidParams` was returned) * Fix #4289 Since these are breaking changes, they apply only to API version 2. Supersedes #4577
This commit is contained in:
@@ -76,6 +76,7 @@ constexpr static ErrorInfo unorderedErrorInfos[]{
|
||||
{rpcINTERNAL, "internal", "Internal error.", 500},
|
||||
{rpcINVALID_LGR_RANGE, "invalidLgrRange", "Ledger range is invalid.", 400},
|
||||
{rpcINVALID_PARAMS, "invalidParams", "Invalid parameters.", 400},
|
||||
{rpcINVALID_HOTWALLET, "invalidHotWallet", "Invalid hotwallet.", 400},
|
||||
{rpcISSUE_MALFORMED, "issueMalformed", "Issue is malformed.", 400},
|
||||
{rpcJSON_RPC, "json_rpc", "JSON-RPC transport error.", 500},
|
||||
{rpcLGR_IDXS_INVALID, "lgrIdxsInvalid", "Ledger indexes invalid.", 400},
|
||||
|
||||
Reference in New Issue
Block a user