- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 1,059 for status_ (0.05 seconds)
-
docs/zh/docs/advanced/response-change-status-code.md
# 响应 - 更改状态码 { #response-change-status-code } 你可能之前已经了解到,你可以设置默认的[响应状态码](../tutorial/response-status-code.md)。 但在某些情况下,你需要返回一个不同于默认值的状态码。 ## 使用场景 { #use-case } 例如,假设你想默认返回一个HTTP状态码为“OK”`200`。 但如果数据不存在,你想创建它,并返回一个HTTP状态码为“CREATED”`201`。 但你仍然希望能够使用`response_model`过滤和转换你返回的数据。 对于这些情况,你可以使用一个`Response`参数。 ## 使用 `Response` 参数 { #use-a-response-parameter } 你可以在你的*路径操作函数*中声明一个`Response`类型的参数(就像你可以为cookies和头部做的那样)。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 1.5K bytes - Click Count (0) -
docs/tr/docs/how-to/authentication-error-status-code.md
# Eski 403 Kimlik Doğrulama Hata Durum Kodlarını Kullanma { #use-old-403-authentication-error-status-codes } FastAPI `0.122.0` sürümünden önce, entegre security yardımcı araçları başarısız bir kimlik doğrulama (authentication) sonrasında client'a bir hata döndüğünde HTTP durum kodu olarak `403 Forbidden` kullanıyordu.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 1.3K bytes - Click Count (0) -
docs/uk/docs/how-to/authentication-error-status-code.md
# Використовуйте старі коди статусу помилки автентифікації 403 { #use-old-403-authentication-error-status-codes } До версії FastAPI `0.122.0`, коли інтегровані засоби безпеки повертали клієнту помилку після невдалої автентифікації, вони використовували HTTP код статусу `403 Forbidden`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 1.8K bytes - Click Count (0) -
docs/ja/docs/advanced/response-change-status-code.md
# レスポンス - ステータスコードの変更 { #response-change-status-code } すでに、デフォルトの[レスポンスのステータスコード](../tutorial/response-status-code.md)を設定できることをご存知かもしれません。 しかし場合によっては、デフォルトとは異なるステータスコードを返す必要があります。 ## ユースケース { #use-case } たとえば、デフォルトでは HTTP ステータスコード "OK" `200` を返したいとします。 しかし、データが存在しなければそれを作成し、HTTP ステータスコード "CREATED" `201` を返したい。 それでも、返すデータは `response_model` でフィルタ・変換できるようにしておきたい。 そのような場合は `Response` パラメータを使えます。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 2K bytes - Click Count (0) -
docs/zh-hant/docs/how-to/authentication-error-status-code.md
# 使用舊的 403 身分驗證錯誤狀態碼 { #use-old-403-authentication-error-status-codes } 在 FastAPI 版本 `0.122.0` 之前,當內建的安全工具在身分驗證失敗後回傳錯誤給用戶端時,會使用 HTTP 狀態碼 `403 Forbidden`。 從 FastAPI 版本 `0.122.0` 起,改為使用更合適的 HTTP 狀態碼 `401 Unauthorized`,並在回應中依據 HTTP 規範加上合理的 `WWW-Authenticate` 標頭,參考 [RFC 7235](https://datatracker.ietf.org/doc/html/rfc7235#section-3.1)、[RFC 9110](https://datatracker.ietf.org/doc/html/rfc9110#name-401-unauthorized)。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 1.1K bytes - Click Count (0) -
docs/es/docs/how-to/authentication-error-status-code.md
# Usar los códigos de estado antiguos 403 para errores de autenticación { #use-old-403-authentication-error-status-codes } Antes de FastAPI versión `0.122.0`, cuando las utilidades de seguridad integradas devolvían un error al cliente después de una autenticación fallida, usaban el código de estado HTTP `403 Forbidden`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 1.2K bytes - Click Count (0) -
docs/de/docs/how-to/authentication-error-status-code.md
# Alte 403-Authentifizierungsfehler-Statuscodes verwenden { #use-old-403-authentication-error-status-codes } Vor FastAPI-Version `0.122.0` verwendeten die integrierten Sicherheits-Utilities den HTTP-Statuscode `403 Forbidden`, wenn sie dem Client nach einer fehlgeschlagenen Authentifizierung einen Fehler zurückgaben.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 1.3K bytes - Click Count (0) -
docs/fr/docs/how-to/authentication-error-status-code.md
# Utiliser les anciens codes d'erreur d'authentification 403 { #use-old-403-authentication-error-status-codes } Avant FastAPI version `0.122.0`, lorsque les utilitaires de sécurité intégrés renvoyaient une erreur au client après un échec d'authentification, ils utilisaient le code d'état HTTP `403 Forbidden`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 1.3K bytes - Click Count (0) -
docs/ru/docs/how-to/authentication-error-status-code.md
# Использование старых статус-кодов ошибок аутентификации 403 { #use-old-403-authentication-error-status-codes } До версии FastAPI `0.122.0`, когда встроенные утилиты безопасности возвращали ошибку клиенту после неудачной аутентификации, они использовали HTTP статус-код `403 Forbidden`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 1.7K bytes - Click Count (0) -
docs/ja/docs/how-to/authentication-error-status-code.md
# 古い 403 認証エラーのステータスコードを使う { #use-old-403-authentication-error-status-codes } FastAPI バージョン `0.122.0` より前は、統合されたセキュリティユーティリティが認証に失敗してクライアントへエラーを返す際、HTTP ステータスコード `403 Forbidden` を使用していました。 FastAPI バージョン `0.122.0` 以降では、より適切な HTTP ステータスコード `401 Unauthorized` を使用し、HTTP 仕様に従ってレスポンスに妥当な `WWW-Authenticate` ヘッダーを含めます。[RFC 7235](https://datatracker.ietf.org/doc/html/rfc7235#section-3.1), [RFC 9110](https://datatracker.ietf.org/doc/html/rfc9110#name-401-unauthorized)。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 1.4K bytes - Click Count (0)