userver: USERVER_RPS_CCONTROL_CUSTOM_STATUS
Loading...
Searching...
No Matches
USERVER_RPS_CCONTROL_CUSTOM_STATUS

USERVER_RPS_CCONTROL_CUSTOM_STATUS Dynamic Config

HTTP status code settings in congestion control for the HTTP server.

Schema:

# yaml
default: {}
description: |
HTTP status code settings in congestion control for the HTTP server.
schema:
type: object
additionalProperties: false
properties:
initial-status-code:
type: integer
default: 429
minimum: 300
maximum: 599
description: |
HTTP status code for the first 'max-time-ms' after congestion
control is triggered.
max-time-ms:
type: integer
default: 10000
x-usrv-cpp-type: std::chrono::milliseconds
minimum: 1
description: |-
How long (in ms) a custom status code may be sent.
After this time, congestion control responds with status 429.

For a full list of dynamic configs see Dynamic config schemas list