mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
RPC tooBusy response has 503 HTTP status if "ripplerpc": "3.0": (#4143)
Fixes #4005 Makes it possible for internal RPC Error Codes to associate themselves with a non-OK (200) HTTP status code. There are quite a number of RPC responses in addition to tooBusy that now have non-OK HTTP status codes. The new return HTTP return codes are only enabled by including "ripplerpc": "3.0" or higher in the original request. Otherwise the historical value, 200, continues to be returned. This ensures that this is not a breaking change.
This commit is contained in:
@@ -1675,7 +1675,7 @@ class LedgerRPC_test : public beast::unit_test::suite
|
||||
void
|
||||
testLedgerAccountsOption()
|
||||
{
|
||||
testcase("Ledger Request, Accounts Option");
|
||||
testcase("Ledger Request, Accounts Hashes");
|
||||
using namespace test::jtx;
|
||||
|
||||
Env env{*this};
|
||||
|
||||
Reference in New Issue
Block a user