- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for shortcut (0.15 sec)
-
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+"
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)