- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for constants (0.18 sec)
-
docs/pt/docs/tutorial/path-operation-configuration.md
Você pode definir o `status_code` (HTTP) para ser usado na resposta da sua *operação de rota*. Você pode passar diretamente o código `int`, como `404`. Mas se você não se lembrar o que cada código numérico significa, pode usar as constantes de atalho em `status`: === "Python 3.8 and above" ```Python hl_lines="3 17" {!> ../../../docs_src/path_operation_configuration/tutorial001.py!} ``` === "Python 3.9 and above"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Oct 17 05:59:11 GMT 2023 - 5.9K bytes - Viewed (0) -
docs/en/docs/tutorial/path-operation-configuration.md
You can define the (HTTP) `status_code` to be used in the response of your *path operation*. You can pass directly the `int` code, like `404`. But if you don't remember what each number code is for, you can use the shortcut constants in `status`: === "Python 3.10+" ```Python hl_lines="1 15" {!> ../../../docs_src/path_operation_configuration/tutorial001_py310.py!} ``` === "Python 3.9+" ```Python hl_lines="3 17"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Oct 17 05:59:11 GMT 2023 - 5.5K bytes - Viewed (0)