# โก ๐ ๏ธ ๐ณ
๐ค ๐ ๐ข ๐ ๐ ๐ช ๐ถโโ๏ธ ๐ *โก ๐ ๏ธ ๐จโ๐จ* ๐ โซ๏ธ.
!!! warning
๐ ๐ ๐ซ ๐ข ๐ถโโ๏ธ ๐ *โก ๐ ๏ธ ๐จโ๐จ*, ๐ซ ๐ *โก ๐ ๏ธ ๐ข*.
## ๐จ ๐ ๐
๐ ๐ช ๐ฌ (๐บ๐ธ๐) `status_code` โ๏ธ ๐จ ๐ *โก ๐ ๏ธ*.
๐ ๐ช ๐ถโโ๏ธ ๐ `int` ๐, ๐ `404`.
โ๏ธ ๐ฅ ๐ ๐ซ ๐ญ โซ๏ธโ ๐ ๐ข ๐, ๐ ๐ช โ๏ธ โจ ๐ `status`:
=== "๐ 3๏ธโฃ.6๏ธโฃ & ๐"
```Python hl_lines="3 17"
{!> ../../../docs_src/path_operation_configuration/tutorial001.py!}
```
=== "๐ 3๏ธโฃ.9๏ธโฃ & ๐"
```Python hl_lines="3 17"
{!> ../../../docs_src/path_operation_configuration/tutorial001_py39.py!}
```
=== "๐ 3๏ธโฃ.1๏ธโฃ0๏ธโฃ & ๐"
```Python hl_lines="1 15"
{!> ../../../docs_src/path_operation_configuration/tutorial001_py310.py!}
```
๐ ๐ ๐ ๐ โ๏ธ ๐จ & ๐ ๐ฎ ๐ ๐.
!!! note "๐ก โน"
๐ ๐ช โ๏ธ `from starlette import status`.
**FastAPI** ๐ ๐ `starlette.status` `fastapi.status` ๐ช ๐, ๐ฉโ๐ป. โ๏ธ โซ๏ธ ๐ ๐ โช๏ธโก๏ธ ๐.
## ๐
๐ ๐ช ๐ฎ ๐ ๐ *โก ๐ ๏ธ*, ๐ถโโ๏ธ ๐ข `tags` โฎ๏ธ `list` `str` (๐ 1๏ธโฃ `str`):
=== "๐ 3๏ธโฃ.6๏ธโฃ & ๐"
```Python hl_lines="17 22 27"
{!> ../../../docs_src/path_operation_configuration/tutorial002.py!}
```
=== "๐ 3๏ธโฃ.9๏ธโฃ & ๐"
```Python hl_lines="17 22 27"
{!> ../../../docs_src/path_operation_configuration/tutorial002_py39.py!}
```
=== "๐ 3๏ธโฃ.1๏ธโฃ0๏ธโฃ & ๐"
```Python hl_lines="15 20 25"
{!> ../../../docs_src/path_operation_configuration/tutorial002_py310.py!}
```
๐ซ ๐ ๐ฎ ๐ ๐ & โ๏ธ ๐ง ๐งพ ๐ข:
### ๐ โฎ๏ธ ๐ข
๐ฅ ๐ โ๏ธ ๐ฆ ๐ธ, ๐ 5๏ธโฃ๐ ๐ ๐ ๐ **๐ ๐**, & ๐ ๐ ๐ โ ๐ญ ๐ ๐ง โ๏ธ **๐ ๐** ๐ *โก ๐ ๏ธ*.
๐ซ ๐ผ, โซ๏ธ ๐ช โ ๐ ๐ช ๐ `Enum`.
**FastAPI** ๐โ๐ฆบ ๐ ๐ ๐ โฎ๏ธ โ
๐ป:
```Python hl_lines="1 8-10 13 18"
{!../../../docs_src/path_operation_configuration/tutorial002b.py!}
```
## ๐ & ๐
๐ ๐ช ๐ฎ `summary` & `description`:
=== "๐ 3๏ธโฃ.6๏ธโฃ & ๐"
```Python hl_lines="20-21"
{!> ../../../docs_src/path_operation_configuration/tutorial003.py!}
```
=== "๐ 3๏ธโฃ.9๏ธโฃ & ๐"
```Python hl_lines="20-21"
{!> ../../../docs_src/path_operation_configuration/tutorial003_py39.py!}
```
=== "๐ 3๏ธโฃ.1๏ธโฃ0๏ธโฃ & ๐"
```Python hl_lines="18-19"
{!> ../../../docs_src/path_operation_configuration/tutorial003_py310.py!}
```
## ๐ โช๏ธโก๏ธ #๏ธโฃ
๐ ๐ ๐ & ๐ ๐ โธ, ๐ ๐ช ๐ฃ *โก ๐ ๏ธ* ๐ ๐ข #๏ธโฃ & **FastAPI** ๐ โ โซ๏ธ โช๏ธโก๏ธ ๐ค.
๐ ๐ช โ โ #๏ธโฃ , โซ๏ธ ๐ ๐ฌ & ๐ฅ โ (โ ๐ ๐ง #๏ธโฃ ๐).
=== "๐ 3๏ธโฃ.6๏ธโฃ & ๐"
```Python hl_lines="19-27"
{!> ../../../docs_src/path_operation_configuration/tutorial004.py!}
```
=== "๐ 3๏ธโฃ.9๏ธโฃ & ๐"
```Python hl_lines="19-27"
{!> ../../../docs_src/path_operation_configuration/tutorial004_py39.py!}
```
=== "๐ 3๏ธโฃ.1๏ธโฃ0๏ธโฃ & ๐"
```Python hl_lines="17-25"
{!> ../../../docs_src/path_operation_configuration/tutorial004_py310.py!}
```
โซ๏ธ ๐ โ๏ธ ๐ ๐ฉบ:
## ๐จ ๐
๐ ๐ช โ ๐จ ๐ โฎ๏ธ ๐ข `response_description`:
=== "๐ 3๏ธโฃ.6๏ธโฃ & ๐"
```Python hl_lines="21"
{!> ../../../docs_src/path_operation_configuration/tutorial005.py!}
```
=== "๐ 3๏ธโฃ.9๏ธโฃ & ๐"
```Python hl_lines="21"
{!> ../../../docs_src/path_operation_configuration/tutorial005_py39.py!}
```
=== "๐ 3๏ธโฃ.1๏ธโฃ0๏ธโฃ & ๐"
```Python hl_lines="19"
{!> ../../../docs_src/path_operation_configuration/tutorial005_py310.py!}
```
!!! info
๐ ๐ `response_description` ๐ ๐ฏ ๐จ, `description` ๐ *โก ๐ ๏ธ* ๐ข.
!!! check
๐ โ ๐ ๐ *โก ๐ ๏ธ* ๐ ๐จ ๐.
, ๐ฅ ๐ ๐ซ ๐ 1๏ธโฃ, **FastAPI** ๐ ๐ ๐ 1๏ธโฃ "๐ ๐จ".
## ๐ข *โก ๐ ๏ธ*
๐ฅ ๐ ๐ช โข *โก ๐ ๏ธ* ๐ข, โ๏ธ ๐ต โ โซ๏ธ, ๐ถโโ๏ธ ๐ข `deprecated`:
```Python hl_lines="16"
{!../../../docs_src/path_operation_configuration/tutorial006.py!}
```
โซ๏ธ ๐ ๐ฏ โข ๐ข ๐ ๐ฉบ:
โ
โ ๐ข & ๐ซ-๐ข *โก ๐ ๏ธ* ๐ ๐:
## ๐
๐ ๐ช ๐ & ๐ฎ ๐ ๐ *โก ๐ ๏ธ* ๐ช ๐ถโโ๏ธ ๐ข *โก ๐ ๏ธ ๐จโ๐จ*.