]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
📝 Update includes `docs/en/docs/advanced/response-change-status-code.md` (#12801)
authorBaldeep Singh Handa <handabaldeep@gmail.com>
Sat, 9 Nov 2024 11:23:58 +0000 (11:23 +0000)
committerGitHub <noreply@github.com>
Sat, 9 Nov 2024 11:23:58 +0000 (11:23 +0000)
docs/en/docs/advanced/response-change-status-code.md

index fc041f7de5fc125d9a99e5575c24ee264890379d..6d3f9f3e8674d79a4cd96d9848ce7e635f931811 100644 (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).