diff --git a/cmd/soroban-rpc/internal/config/options.go b/cmd/soroban-rpc/internal/config/options.go index b428dd0f..ae3e8d59 100644 --- a/cmd/soroban-rpc/internal/config/options.go +++ b/cmd/soroban-rpc/internal/config/options.go @@ -349,49 +349,49 @@ func (cfg *Config) options() ConfigOptions { }, { TomlKey: strutils.KebabToConstantCase("max-get-health-execution-duration"), - Usage: "The maximum duration of time allowed for processing a getHealth request. When that time elapses, the server would return 504 and abort the request's execution", + Usage: "The maximum duration of time allowed for processing a getHealth request. When that time elapses, the rpc server would return -32001 and abort the request's execution", ConfigKey: &cfg.MaxGetHealthExecutionDuration, DefaultValue: 5 * time.Second, }, { TomlKey: strutils.KebabToConstantCase("max-get_events-execution-duration"), - Usage: "The maximum duration of time allowed for processing a getEvents request. When that time elapses, the server would return 504 and abort the request's execution", + Usage: "The maximum duration of time allowed for processing a getEvents request. When that time elapses, the rpc server would return -32001 and abort the request's execution", ConfigKey: &cfg.MaxGetEventsExecutionDuration, DefaultValue: 10 * time.Second, }, { TomlKey: strutils.KebabToConstantCase("max-get-network-execution-duration"), - Usage: "The maximum duration of time allowed for processing a getNetwork request. When that time elapses, the server would return 504 and abort the request's execution", + Usage: "The maximum duration of time allowed for processing a getNetwork request. When that time elapses, the rpc server would return -32001 and abort the request's execution", ConfigKey: &cfg.MaxGetNetworkExecutionDuration, DefaultValue: 5 * time.Second, }, { TomlKey: strutils.KebabToConstantCase("max-get-latest-ledger-execution-duration"), - Usage: "The maximum duration of time allowed for processing a getLatestLedger request. When that time elapses, the server would return 504 and abort the request's execution", + Usage: "The maximum duration of time allowed for processing a getLatestLedger request. When that time elapses, the rpc server would return -32001 and abort the request's execution", ConfigKey: &cfg.MaxGetLatestLedgerExecutionDuration, DefaultValue: 5 * time.Second, }, { TomlKey: strutils.KebabToConstantCase("max-get_ledger-entries-execution-duration"), - Usage: "The maximum duration of time allowed for processing a getLedgerEntries request. When that time elapses, the server would return 504 and abort the request's execution", + Usage: "The maximum duration of time allowed for processing a getLedgerEntries request. When that time elapses, the rpc server would return -32001 and abort the request's execution", ConfigKey: &cfg.MaxGetLedgerEntriesExecutionDuration, DefaultValue: 5 * time.Second, }, { TomlKey: strutils.KebabToConstantCase("max-get-transaction-execution-duration"), - Usage: "The maximum duration of time allowed for processing a getTransaction request. When that time elapses, the server would return 504 and abort the request's execution", + Usage: "The maximum duration of time allowed for processing a getTransaction request. When that time elapses, the rpc server would return -32001 and abort the request's execution", ConfigKey: &cfg.MaxGetTransactionExecutionDuration, DefaultValue: 5 * time.Second, }, { TomlKey: strutils.KebabToConstantCase("max-send-transaction-execution-duration"), - Usage: "The maximum duration of time allowed for processing a sendTransaction request. When that time elapses, the server would return 504 and abort the request's execution", + Usage: "The maximum duration of time allowed for processing a sendTransaction request. When that time elapses, the rpc server would return -32001 and abort the request's execution", ConfigKey: &cfg.MaxSendTransactionExecutionDuration, DefaultValue: 15 * time.Second, }, { TomlKey: strutils.KebabToConstantCase("max-simulate-transaction-execution-duration"), - Usage: "The maximum duration of time allowed for processing a simulateTransaction request. When that time elapses, the server would return 504 and abort the request's execution", + Usage: "The maximum duration of time allowed for processing a simulateTransaction request. When that time elapses, the rpc server would return -32001 and abort the request's execution", ConfigKey: &cfg.MaxSimulateTransactionExecutionDuration, DefaultValue: 15 * time.Second, },