📝 Update includes `docs/en/docs/advanced/response-change-status-code.md` (#12801)

This commit is contained in:
Baldeep Singh Handa 2024-11-09 11:23:58 +00:00 committed by GitHub
parent c0f56ce0b2
commit 7517aa9f8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -20,9 +20,7 @@ You can declare a parameter of type `Response` in your *path operation function*
And then you can set the `status_code` in that *temporal* response object.
```Python hl_lines="1 9 12"
{!../../docs_src/response_change_status_code/tutorial001.py!}
```
{* ../../docs_src/response_change_status_code/tutorial001.py hl[1,9,12] *}
And then you can return any object you need, as you normally would (a `dict`, a database model, etc).