Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 98 for statusCode (0.06 sec)

  1. docs/ja/docs/advanced/additional-status-codes.md

    例えば、itemを更新し、成功した場合は200 "OK"のHTTPステータスコードを返す *path operation* を作りたいとします。
    
    しかし、新しいitemも許可したいです。itemが存在しない場合は、それらを作成して201 "Created"を返します。
    
    これを達成するには、 `JSONResponse` をインポートし、 `status_code` を設定して直接内容を返します。
    
    {* ../../docs_src/additional_status_codes/tutorial001.py hl[4,25] *}
    
    /// warning | 注意
    
    上記の例のように `Response` を明示的に返す場合、それは直接返されます。
    
    モデルなどはシリアライズされません。
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/additional-status-codes.md

    To achieve that, import `JSONResponse`, and return your content there directly, setting the `status_code` that you want:
    
    {* ../../docs_src/additional_status_codes/tutorial001_an_py310.py hl[4,25] *}
    
    /// warning
    
    When you return a `Response` directly, like in the example above, it will be returned directly.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 2K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/path-operation-configuration.md

    # ➡ 🛠️ 📳
    
    📤 📚 🔢 👈 👆 💪 🚶‍♀️ 👆 *➡ 🛠️ 👨‍🎨* 🔗 ⚫️.
    
    /// warning
    
    👀 👈 👫 🔢 🚶‍♀️ 🔗 *➡ 🛠️ 👨‍🎨*, 🚫 👆 *➡ 🛠️ 🔢*.
    
    ///
    
    ## 📨 👔 📟
    
    👆 💪 🔬 (🇺🇸🔍) `status_code` ⚙️ 📨 👆 *➡ 🛠️*.
    
    👆 💪 🚶‍♀️ 🔗 `int` 📟, 💖 `404`.
    
    ✋️ 🚥 👆 🚫 💭 ⚫️❔ 🔠 🔢 📟, 👆 💪 ⚙️ ⌨ 📉 `status`:
    
    {* ../../docs_src/path_operation_configuration/tutorial001.py hl[3,17] *}
    
    👈 👔 📟 🔜 ⚙️ 📨 & 🔜 🚮 🗄 🔗.
    
    /// note | 📡 ℹ
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/custom-response.md

    If you do that, then you can return the URL directly from your *path operation* function.
    
    In this case, the `status_code` used will be the default one for the `RedirectResponse`, which is `307`.
    
    ---
    
    You can also use the `status_code` parameter combined with the `response_class` parameter:
    
    {* ../../docs_src/custom_response/tutorial006c.py hl[2,7,9] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  5. docs/ko/docs/advanced/custom-response.md

    ---
    
    또는 `response_class` 매개변수에서 사용할 수도 있습니다:
    
    
    {* ../../docs_src/custom_response/tutorial006b.py hl[2,7,9] *}
    
    이 경우, *경로 작업* 함수에서 URL을 직접 반환할 수 있습니다.
    
    이 경우, 사용되는 `status_code`는 `RedirectResponse`의 기본값인 `307` 입니다.
    
    ---
    
    `status_code` 매개변수를 `response_class` 매개변수와 함께 사용할 수도 있습니다:
    
    {* ../../docs_src/custom_response/tutorial006c.py hl[2,7,9] *}
    
    ### `StreamingResponse`
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Feb 15 11:21:20 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  6. docs/ko/docs/tutorial/path-operation-configuration.md

    # 경로 작동 설정
    
    *경로 작동 데코레이터*를 설정하기 위해서 전달할수 있는 몇 가지 매개변수가 있습니다.
    
    /// warning | 경고
    
    아래 매개변수들은 *경로 작동 함수*가 아닌 *경로 작동 데코레이터*에 직접 전달된다는 사실을 기억하십시오.
    
    ///
    
    ## 응답 상태 코드
    
    *경로 작동*의 응답에 사용될 (HTTP) `status_code`를 정의할수 있습니다.
    
    `404`와 같은 `int`형 코드를 직접 전달할수 있습니다.
    
    하지만 각 코드의 의미를 모른다면, `status`에 있는 단축 상수들을 사용할수 있습니다:
    
    {* ../../docs_src/path_operation_configuration/tutorial001.py hl[3,17] *}
    
    각 상태 코드들은 응답에 사용되며, OpenAPI 스키마에 추가됩니다.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. docs/ru/docs/tutorial/path-operation-configuration.md

    /// warning | Внимание
    
    Помните, что эти параметры передаются непосредственно *декоратору операций пути*, а не вашей *функции-обработчику операций пути*.
    
    ///
    
    ## Коды состояния
    
    Вы можете определить (HTTP) `status_code`, который будет использован в ответах вашей *операции пути*.
    
    Вы можете передать только `int`-значение кода, например `404`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/path-operation-configuration.md

    Notice that these parameters are passed directly to the *path operation decorator*, not to your *path operation function*.
    
    ///
    
    ## Response Status Code { #response-status-code }
    
    You can define the (HTTP) `status_code` to be used in the response of your *path operation*.
    
    You can pass directly the `int` code, like `404`.
    
    But if you don't remember what each number code is for, you can use the shortcut constants in `status`:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  9. docs/em/docs/advanced/path-operation-advanced-configuration.md

    ⚫️ 🏆 🚫 🎦 🆙 🧾, ✋️ 🎏 🧰 (✅ 🐉) 🔜 💪 ⚙️ 🎂.
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial004.py hl[19:29] *}
    
    ## 🌖 📨
    
    👆 🎲 ✔️ 👀 ❔ 📣 `response_model` & `status_code` *➡ 🛠️*.
    
    👈 🔬 🗃 🔃 👑 📨 *➡ 🛠️*.
    
    👆 💪 📣 🌖 📨 ⏮️ 👫 🏷, 👔 📟, ♒️.
    
    📤 🎂 📃 📥 🧾 🔃 ⚫️, 👆 💪 ✍ ⚫️ [🌖 📨 🗄](additional-responses.md){.internal-link target=_blank}.
    
    ## 🗄 ➕
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. docs/es/docs/tutorial/path-operation-configuration.md

    /// warning | Advertencia
    
    Ten en cuenta que estos parámetros se pasan directamente al *path operation decorator*, no a tu *path operation function*.
    
    ///
    
    ## Código de Estado del Response
    
    Puedes definir el `status_code` (HTTP) que se utilizará en el response de tu *path operation*.
    
    Puedes pasar directamente el código `int`, como `404`.
    
    Pero si no recuerdas para qué es cada código numérico, puedes usar las constantes atajo en `status`:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top