Browse Source

🎨 Auto format

pull/14673/head
pre-commit-ci-lite[bot] 6 months ago
committed by GitHub
parent
commit
567774be63
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      docs/en/docs/advanced/response-change-status-code.md

3
docs/en/docs/advanced/response-change-status-code.md

@ -30,7 +30,7 @@ And if you declared a `response_model`, it will still be used to filter and conv
You can also declare the `Response` parameter in dependencies, and set the status code in them. But keep in mind that the last one to be set will win.
## Notes
## Notes { #notes }
The `status_code` can be set dynamically depending on your application logic.
@ -41,4 +41,3 @@ For example, you might return:
- `204 No Content` when no response body is needed
This allows reusing the same path operation while still returning accurate HTTP status codes.

Loading…
Cancel
Save