Configurable HTTP code for concurrency limits #2301
-
I was looking at https://github.com/encode/uvicorn/blame/a2219eb2ed2bbda4143a0fb18c4b0578881b1ae8/uvicorn/protocols/http/flow_control.py because I'd rather have a 429 than 503 for concurrency limits reached; I noticed that there's a magic number in the file which isn't used ( What do the maintainers feel about making this configurable? |
Beta Was this translation helpful? Give feedback.
Answered by
Kludex
Apr 14, 2024
Replies: 1 comment
-
503 seems the right status code for it. I'd prefer to not allow it to be configurable. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Kludex
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CLOSE_HEADER
is being used.503 seems the right status code for it.
I'd prefer to not allow it to be configurable.